in reply to Re: Are we seeing syntax inconsistency?
in thread Are we seeing syntax inconsistency?
foreach has to create a fresh variable every time. Otherwise, when you keep a reference to one (as with the anonymous subroutine), they would all hold the same value every time a new value was assigned in the loop.
(And thanks to Animator for clearing up my sloppy wording on this)
Cheers,
Ovid
New address of my CGI Course.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Are we seeing syntax inconsistency?
by Animator (Hermit) on Nov 11, 2005 at 16:37 UTC | |
by Aristotle (Chancellor) on Nov 11, 2005 at 17:11 UTC |