Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^3: A brain twister? (how to make 2 lines->1)

by MidLifeXis (Monsignor)
on Jun 25, 2012 at 13:00 UTC ( [id://978199]=note: print w/replies, xml ) Need Help??


in reply to Re^2: A brain twister? (how to make 2 lines->1)
in thread A brain twister? (how to make 2 lines->1)

How about

while (my ($key, $value) = each %hash) {...}

See each for details. The example is directly from the documentation.

--MidLifeXis

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2024-04-25 23:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found