Welcome to the Monastery | |
PerlMonks |
Re^4: Scope of $/by Anonymous Monk |
on May 26, 2016 at 01:52 UTC ( [id://1164156]=note: print w/replies, xml ) | Need Help?? |
:) in the OPs program, having { local $/ ... } on the outside doesn't change the behavior of the program, therefore no benefit is realized ... so the extra {local} is just extra typing (noise), unless you add a name, like sub StdinTriElReader{ local $/ = "\n\n\n"; ... } then its serves a purpose :D:D:)
In Section
Seekers of Perl Wisdom
|
|