Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

RE: My favorite looping mechanism in Perl is:

by Grok (Initiate)
on May 12, 2000 at 18:37 UTC ( [id://11277]=note: print w/replies, xml ) Need Help??


in reply to My favorite looping mechanism in Perl is:

What about map?
  • Comment on RE: My favorite looping mechanism in Perl is:

Replies are listed 'Best First'.
RE: map is not a choice
by turnstep (Parson) on May 12, 2000 at 18:39 UTC
    Perhaps because map is not a looping mechanism in that you cannot break out of it by satisfying a test or by using 'last'. Technically, "goto" and "what?" are not really looping mechanisms either, and "for" and "foreach" are the same, which leaves only "while" and "for". Of course, we could add "anonymous" loops (blocks) as well, which don't have a test but can use last/next/redo. Maybe we could stretch things a bit and have a fourth entry of "do/while"...

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2024-04-19 22:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found