Do you know where your variables are? | |
PerlMonks |
Re: "Baby" Perl versus "Bad" Perlby itub (Priest) |
on Dec 03, 2005 at 23:19 UTC ( [id://513870]=note: print w/replies, xml ) | Need Help?? |
"for" is for C-style loops and "foreach" is for iterating over arrays. I'm confused--what's wrong with that? That's the convention used in the perldocs, isn't it? (I personally always type "for" out of laziness, but I don't complain if someone prefers to type "foreach" to iterate over an array).
In Section
Meditations
|
|