Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Difference between for and foreach

by gube (Parson)
on Sep 17, 2007 at 15:08 UTC ( [id://639422]=note: print w/replies, xml ) Need Help??


in reply to Difference between for and foreach

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re^2: Difference between for and foreach
by tirwhan (Abbot) on Sep 17, 2007 at 15:31 UTC

    Wrong. See the replies by Joost and johngg, and for practical demonstration try this one-liner

    perl -e 'foreach ($i=0;$i<10;$i++) { print $i }'

    All dogma is stupid.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://639422]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2024-04-25 16:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found