Keep It Simple, Stupid | |
PerlMonks |
Re: Looping through an Array of Hashesby giulienk (Curate) |
on Feb 21, 2002 at 22:52 UTC ( [id://146825]=note: print w/replies, xml ) | Need Help?? |
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.
In Section
Seekers of Perl Wisdom
|
|