in reply to Re^3: Scope of $/
in thread Scope of $/
:) 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:)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Scope of $/
by Marshall (Canon) on May 26, 2016 at 01:55 UTC | |
by NetWallah (Canon) on May 26, 2016 at 05:51 UTC | |
by Laurent_R (Canon) on May 26, 2016 at 08:52 UTC |