in reply to How I learned to stop worrying and love the hash slice. (boo)
in thread beyond me
A simplified example:
Of course, this does not preserve the order of the elements as they were in original array @a.my @a = (1,2,3,2,1); my %a; @a{@a} = (1) x @a; my @unique_a = keys %a;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: How I learned to stop worrying and love the hash slice. (boo)
by blakem (Monsignor) on Aug 14, 2001 at 14:24 UTC |