Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

RE: Re: for vs foreach

by vkonovalov (Monk)
on Jul 14, 2000 at 14:08 UTC ( [id://22526]=note: print w/replies, xml ) Need Help??


in reply to Re: for vs foreach
in thread for vs foreach

for me
for (@array) { # do someting with $_ }
is quite natural, and
for my $i (0..$#array) {...
is used quite often by me...

I'm still searching for perl wisdom to find different behaviour between for and foreach

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (1)
As of 2024-04-25 00:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found