Do you know where your variables are? | |
PerlMonks |
Re: How do I select a random key from a hash?by mirod (Canon) |
on Feb 05, 2001 at 20:57 UTC ( [id://56433]=note: print w/replies, xml ) | Need Help?? |
The brute force solution:
If you want to do this on a huge hash and you want to do lots of random access and updates then you should look at Building a Better Hash, a pretty clever way to solve this problem.
In Section
Seekers of Perl Wisdom
|
|