Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: difference between for and foreach?

by monk2b (Pilgrim)
on Jan 20, 2001 at 19:50 UTC ( #53217=note: print w/replies, xml ) Need Help??


in reply to difference between for and foreach?

For allows you to do something a certain number of times
and
Foreach allows you to do something to each value
learning too
  • Comment on Re: difference 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://53217]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (3)
As of 2022-05-29 12:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (101 votes). Check out past polls.

    Notices?