laziness, impatience, and hubris | |
PerlMonks |
Access the Keys of a Hash Reference Without a For Loopby Dru (Hermit) |
on Nov 01, 2010 at 16:56 UTC ( [id://868810]=perlquestion: print w/replies, xml ) | Need Help?? |
Dru has asked for the wisdom of the Perl Monks concerning the following question:
Hello Monks, I have been needing your help a lot lately. This is a followup question to Is Using Threads Slower Than Not Using Threads?. I am trying to optimize my code to deal with a large list of ip addresses against a large text file. Could you please school me on how to access the keys of a hash reference without using a for loop? I thought exists $ipsAll->{key}) was the way, but that appears to be how to access the values of the keys.
Thanks, Dru Perl, the Leatherman of Programming languages. - qazwart
Back to
Seekers of Perl Wisdom
|
|