Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Hash Value via Data::Dumperby johnrein55 (Novice) |
on Jun 12, 2013 at 11:47 UTC ( [id://1038442]=perlquestion: print w/replies, xml ) | Need Help?? |
johnrein55 has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
I am using Data::Dumper to store log contents into two hashes ( %users and %searches ). I have connection number as common string between two hashes. I would like to perform a search on %Searches, get the connection number, and perform a lookup on %users hash value, if matched, count the total # of connections, if connection # greater than 3, print "bad user" statement. Please note :1. Connection # are unique. 2. Ideally connection # within %Users should be present, if connection # not found, no action required. Could somone suggest on the last section, as it is not working? Also, if there is a better way to do it, please suggest.Here is the code :
Back to
Seekers of Perl Wisdom
|
|