Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Printing a hash from a foreach loop

by abaxaba (Hermit)
on May 01, 2002 at 18:34 UTC ( [id://163331]=note: print w/replies, xml ) Need Help??


in reply to Printing a hash from a foreach loop

You should try using each:
while (my ($length,$month) = each %days_in_month) { print "$length days hath $month\n"; }
ÅßÅ×ÅßÅ
"It is a very mixed blessing to be brought back from the dead." -- Kurt Vonnegut

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (2)
As of 2024-04-20 05:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found