Keep It Simple, Stupid | |
PerlMonks |
Looping through a hash where some keys are the sameby GaijinPunch (Pilgrim) |
on Feb 18, 2005 at 01:15 UTC ( [id://432157]=perlquestion: print w/replies, xml ) | Need Help?? |
GaijinPunch has asked for the wisdom of the Perl Monks concerning the following question:
Hey Monks: My (free) provider disabled all CGI (Perl included) b/c some geek hacker attacked in a very malicious way. As such, I had to recode everything in PHP. What a crime, no? Anyways, as I'm out of practice, I'm having trouble with something. I need to loop through a small hash. Some of the keys are the same though. Seems that everything I try such as either of two of the following won't work. It will grab only one instance in which a key is used, or both instances, but output the same value twice. Any help? Returns bob => section-a Returns bob => section-b bob => section-b
Back to
Seekers of Perl Wisdom
|
|