Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Get just the unique value

by jaredor (Priest)
on Apr 05, 2013 at 18:26 UTC ( [id://1027194]=note: print w/replies, xml ) Need Help??


in reply to Get just the unique value

use Modern::Perl; use List::MoreUtils qw(uniq); use Data::Dump qw(pp); my $data = { ... your array of hashes here ... }; my @names = uniq map { $_->{'type'} } @$data; pp \@names;

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1027194]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (9)
As of 2024-03-28 10:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found