perl - Is hashref in array?

Alan Young alansyoungiii at gmail.com
Wed Jan 10 05:37:55 MST 2007


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?



More information about the PLUG mailing list