Help for this page

Select Code to Download


  1. or download this
    sub getRandomPairFromHash{
        my $href = shift;
    ...
        ( $key, $val ) = each %$href while $n--;
        return ( $key, $val )
    }