Do you know where your variables are? | |
PerlMonks |
Re: Reportingby perrin (Chancellor) |
on Apr 03, 2003 at 17:47 UTC ( [id://247824]=note: print w/replies, xml ) | Need Help?? |
Actually, for is exactly the same as foreach. They are synonyms. However, C-style for loops with an interator variable are slower than foreach/for looping over a list. In general, you'll find that most of the time in most programs is spent on I/O tasks like reading the disk or talking to a database. Small differences in other areas tend to get lost in the noise.
In Section
Meditations
|
|