2009/6/10 Berler Chanan <[email protected]>:
> 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
_______________________________________________
Perl mailing list
[email protected]
http://mail.perl.org.il/mailman/listinfo/perl

Reply via email to