Problems? Is your data what you think it is? | |
PerlMonks |
getting the lexicals - the overloading optionby shushu (Scribe) |
on Oct 10, 2002 at 15:43 UTC ( [id://204207]=note: print w/replies, xml ) | Need Help?? |
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: 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
In Section
Seekers of Perl Wisdom
|
|