Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^2: hash key regular expression pattern

by Anonymous Monk
on Feb 19, 2015 at 13:58 UTC ( [id://1117219]=note: print w/replies, xml ) Need Help??


in reply to Re: hash key regular expression pattern
in thread hash key regular expression pattern

use List::Util qw<first>; print $cat{ ( first { m/CHICAGO/i } keys %cat ) || '' };

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2024-03-29 00:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found