in reply to Why the variable $n was undef?
See perlsyn on Foreach-Loops. The looop variable gets localized, that is, at loop end its value gets restored to what it was before the loop started.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Why the variable $n was undef?
by JavaFan (Canon) on Aug 16, 2010 at 13:29 UTC | |
|
Re^2: Why the variable $n was undef?
by appleii (Novice) on Aug 16, 2010 at 13:08 UTC | |
by BioLion (Curate) on Aug 16, 2010 at 13:12 UTC |