[Israel.pm] Can anyone explain my mistake ?
Amir E. Aharoni
amir.aharoni at gmail.com
Wed Jun 10 05:28:36 PDT 2009
2009/6/10 Berler Chanan <chananb at centerity.com>:
> In the real world (in my way of thinking)
> Foreach should have interpreted into a 'for' loop
>
> Means:
> foreach $elm (@elm_arr) ==> should have been: for ($index = 0; $index >=
> $#elm_arr; $index++) { $elm = $elm_arr[$index]; ..... }
...But then it would be written in C.
If you want to write it in Perl, use strict.
--
אמיר אלישע אהרוני
Amir Elisha Aharoni
http://aharoni.wordpress.com
"We're living in pieces,
I want to live in peace." - T. Moore
More information about the Perl
mailing list