Devel::Spy::TieScalar - Tied logging wrapper for scalars
tie my $pretend_guts, 'Devel::Spy::TieScalar', \ $real_guts, $logging_function or croak; # Passed operation through to $real_guts and tattled about the # operation to $logging_function. $pretend_guts = 42;
Most functions have not been implemented. I implemented only the ones I needed. Feel free to add more and send me patches. I'll also grant you permission to upload into the Devel::Spy namespace if you're a clueful developer.
Devel::Spy, Devel::Spy::_obj, Devel::Spy::Util, Devel::Spy::TieHash, Devel::Spy::TieArray, Devel::Spy::TieHandle.
To install Devel::Spy, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Devel::Spy
CPAN shell
perl -MCPAN -e shell install Devel::Spy
For more information on module installation, please visit the detailed CPAN module installation guide.