Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: getting hash key with value (List::Pairwise)

by lodin (Hermit)
on Apr 17, 2008 at 10:08 UTC ( [id://681103]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use List::Pairwise 'mapp';
    
    ...
    
    __END__
    baz foo
    
  2. or download this
    my ($key, @too_many) = mapp { $b eq $val ? $a : () } %hash;
    ! @too_many
        or die 'Too many ...';
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (5)
As of 2024-04-18 05:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found