my @array = qw/ foo bar baz foo quux baz /; print map "$_\n", keys %{ {map {$_ => 1} @array} }; __output__ foo quux baz bar
_________
broquaint
In reply to Re: Unique values in array
by broquaint
in thread Unique values in array
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |