in reply to How do I pull out unique values in a multidimentional array

Sorry about the above - forgot the <code> tags.

my %unique_values; $unique_values{$_->[1]}++ for @array; print "Key $_\n" foreach keys %unique_values;

Originally posted as a Categorized Answer.