more useful options | |
PerlMonks |
Re: Re: •Re: Seeking an idiom for localizing $/by Anomynous Monk (Scribe) |
on May 02, 2004 at 23:46 UTC ( [id://349878]=note: print w/replies, xml ) | Need Help?? |
Doesn't look horrible at all; it's a combination of the standard idiom for restricting something to the smallest possible scope (do { local whatever; expression } or do { no strict "refs"; $$symref }) combined with the stuff that a plain while (<FILE>) does implicitly for you (while (defined($_ = <FILE>)).
In Section
Seekers of Perl Wisdom
|
|