Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Looping through an Array of Hashes

by giulienk (Curate)
on Feb 21, 2002 at 22:52 UTC ( [id://146825]=note: print w/replies, xml ) Need Help??


in reply to Looping through an Array of Hashes

You got a problem with <@months>, cause @months isn't a FILEHANDLE and it doesn't need <> around it. And of course you should switch from a while to a for loop. Still i doubt the code will do what i suppose you want it to do, cause you put in @months 3 references to the same hash %m.

$|=$_='1g2i1u1l2i4e2n0k',map{print"\7",chop;select$,,$,,$,,$_/7}m{..}g

Log In?
Username:
Password:

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

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

    No recent polls found