Hill, Greg wrote:
my @unique = grep { !$seen{$_}++ } @tree;

Wait ... unless you have multiple references pointing to the same data structure, every element is going to be unique.

Were you trying to get rid of duplicate references Andrew? Or separate data structures that have the same name/value pairs?

/*
PLUG: http://plug.org, #utah on irc.freenode.net
Unsubscribe: http://plug.org/mailman/options/plug
Don't fear the penguin.
*/

Reply via email to