|
|
|
Your skill will accomplish what the force of many cannot |
|
| PerlMonks |
Re: detecting changes in a localised variableby TedYoung (Deacon) |
| on Feb 18, 2005 at 22:25 UTC ( #432551=note: print w/ replies, xml ) | Need Help?? |
|
Here I tie $_ to a Complainer package that can warn/carp/croak any time something tries to assign to it.
Update: Added the fetch method so that reading $_ actually works. not sure why I have to do that, Tie::StdScalar should handle that for me... but this was written in a hurry. Ted Young ($$<<$$=>$$<=>$$<=$$>>$$) always returns 1. :-)
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||