sanket vaidya wrote:
What is the difference between the 'for' & 'foreach' loops? I know that they
can be used interchangeably then what is the purpose of keeping them
separate?

The _words_ 'for' and 'foreach' can be used interchangeably in foreach loops, but a true for loop is something else.

Can anyone suggest me a good url which can tell the difference between two?

http://perldoc.perl.org/perlsyn.html

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to