Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Get just the unique value

by NetWallah (Canon)
on Apr 05, 2013 at 17:06 UTC ( #1027171=note: print w/replies, xml ) Need Help??


in reply to Get just the unique value

You could do it without naming a temporary hash - I'm not recommending you do this, but it was fun writing:
print qq|$_ | for sort keys %{{ +map {$_->{type} => undef} @$data }};
Prints:
Cotton Paper Plastic

             "I'm fairly sure if they took porn off the Internet, there'd only be one website left, and it'd be called 'Bring Back the Porn!'"
        -- Dr. Cox, Scrubs

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1027171]
help
Chatterbox?
NodeReaper says "Shhhh! Be vewy vewy quiet, I'm hunting wumpus"

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (1)
As of 2018-01-17 22:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How did you see in the new year?










    Results (206 votes). Check out past polls.

    Notices?