Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Easier than foreach $key (keys %links) loop

by merlyn (Sage)
on Nov 22, 2000 at 03:44 UTC ( [id://42832]=note: print w/replies, xml ) Need Help??


in reply to Easier than foreach $key (keys %links) loop

The problem is that there's no place to insert a "sort" here. And if you abort the loop early, you run the risk of leaving the secret "each" pointer sitting somewhere in the middle of the hash, confusing the next such loop.

So, "easier" is all relative. If this floats your boat, use it.

-- Randal L. Schwartz, Perl hacker

  • Comment on Re: Easier than foreach $key (keys %links) loop

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2024-04-25 12:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found