Check 'perldoc -q duplicate'my @array = qw( foo bar match zoot zoot match match match ); @array = grep { ! $hash{$_}++} @array;
--
There are 10 kinds of people -- those that understand binary, and those that don't.
In reply to Re: Having repeated intances become one in Array
by mephit
in thread Having repeated intances become one in Array
by chuleto1
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |