Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
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 minimum standard of quality and will not be displayed.

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 contemplating the Monastery: (3)
As of 2026-03-15 21:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.