Just another Perl shrine | |
PerlMonks |
Re^3: trying to implement hash table. and getting lots of difficulties. plz help me out..........by NetWallah (Canon) |
on Oct 10, 2012 at 16:53 UTC ( [id://998260]=note: print w/replies, xml ) | Need Help?? |
If you want to fail the search when the item is not found, you need to add the following line before the final "print"
There are actually 3 keys in the "201" slot. If you run the code I posted, it will show all three. If you wanted to show only the matched key, you can use a grep statement , very similar to the one above.
I hope life isn't a big joke, because I don't get it.
In Section
Seekers of Perl Wisdom
|
|