in reply to Re^4: syntax of map operator
in thread syntax of map operator
Yes, but, it's not scope, it's undefined behaviour. From perlsyn:
NOTE: The behaviour of a "my" statement modified with a statement modifier conditional or loop construct (e.g. "my $x if ...") is undefined. The value of the "my" variable may be "undef", any previously assigned value, or possibly anything else. Don’t rely on it. Future versions of perl might do something different from the version of perl you try it out on. Here be dragons.
Emphasis added.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: syntax of map operator
by ikegami (Patriarch) on Jan 24, 2010 at 21:56 UTC | |
by jwkrahn (Abbot) on Jan 25, 2010 at 02:36 UTC | |
by ikegami (Patriarch) on Jan 25, 2010 at 02:50 UTC |