Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

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

by lodin (Hermit)
on Apr 17, 2008 at 10:08 UTC ( #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? | Other CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2022-08-11 02:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?