in reply to Syntax error - "my" within foreach loop
If you have "my" inside the loop, it makes perl create a new lexical every time around -- and throws out the previous one.
Try turning on "use diagnostics;" to see more info about the problem.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Syntax error - "my" within foreach loop
by chromatic (Archbishop) on Apr 13, 2008 at 21:10 UTC | |
by rudder (Scribe) on Apr 14, 2008 at 00:41 UTC |