# @input assumed by statement of requirement my %done = (); my @output = (); for ( @input ) { unless( $done{ lc( $_ ) } ) { push @output, $_; $done{ lc( $_ ) } = 1; } }
One world, one people
In reply to Re: (almost) Unique elements of an array
by anonymized user 468275
in thread (almost) Unique elements of an array
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |