At 5 characters
is much more elegant than the equivalentmy @keys = keys %{{f}};
Remember that hashes do uniq'ing and shuffling for free :)use List::Util qw( shuffle uniq pairkeys ); my @keys = shuffle uniq pairkeys f;
In reply to Re: Using 'keys' on a list
by tybalt89
in thread Using 'keys' on a list
by lammey
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |