sub uniq { my %uniq; @uniq{map @$_, @_} = (); return [ keys %uniq ]; }
Update: This code is untested. I modified it to account for passing in array refs instead of arrays.
Cheers - L~R
In reply to Re: Return reference to hash keys
by Limbic~Region
in thread Return reference to hash keys
by miketosh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |