Perl: the Markov chain saw | |
PerlMonks |
Coping with Scoping.by BlaisePascal (Monk) |
on Aug 03, 2000 at 18:54 UTC ( [id://25985]=note: print w/replies, xml ) | Need Help?? |
It says local() does what I think it does, it exists mainly for historical reasons, and also says "never use local(), always use my()".
I think the last is a bit much. I find constructs like: <code> { local $\ = $RECORDSEPARATOR; $record = <INFILE>; } <code> to be quite handy, and much less unwieldy than the alternative I mentioned.
In Section
Seekers of Perl Wisdom
|
|