> > @list2 = do { my %t;grep !$t{$_}++, @list1 };
> > @list2 = keys %{ my %s;@[EMAIL PROTECTED] = ();\%s; };
> ^^^^^^^^
> This should be @list1 to keep the examples in parallel
Oops soory folks!
> >
> > Does anyone know for sure if they both ot one or the other
> keeps the
> > order of the elements in the array? (IE - First instance
> first, like
> > in the OP example)
>
> The first one maintains order. The second does not.
Cool thanks!
Dan
>
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]