in reply to
hash key regular expression pattern
Thank you for all the great suggestions and tips. I really appreciated.
Comment on
Re: hash key regular expression pattern
Replies are listed 'Best First'.
Re^2: hash key regular expression pattern
by
Anonymous Monk
on Feb 19, 2015 at 13:58 UTC
use List::Util qw<first>; print $cat{ ( first { m/CHICAGO/i } keys %cat ) || '' };
[reply]
In Section
Seekers of Perl Wisdom