Before I jump into the cold water of perlguts I wanted to check another option to get what I want.
In short - all I want it to print to a file the value of every lexical variable used in the executed code.
The second idea was to overload all of the operators, and make them just print before doing their job.
Well, we thought about this option only because we never actually did overloading.
After reading the stuff I understand that overloading is done only for specific types, so to use it the code shoud have something like:
my $a = new OVERLOADED "value";
Which is impossible in our case.
The question is - is there a way to overload ALL of the basic types of Perl and inherit it "quietly" to the Safe compartement ?
TIA,
shushu