in reply to Re: (jeffa) Re: (s)coping with foreach
in thread (s)coping with foreach
i think the point of that last bit was that "foreach" and "for" act differently.Definitely wrong. for and foreach are completely identical. Once Perl finishes compiling your program, it can't even remember which one you used.
If you look in toke.c, you will see:
This is in the vicinity of line 4145.case KEY_for: case KEY_foreach: ... code here that handles 'for' and 'foreach'
|
|---|