in reply to Re: Testing for the presence of a hash key in a filename
in thread Testing for the presence of a hash key in a filename
It's basically what I'd do too. I'd just construct the regex myself I guess.
Something along the lines of:
my $match = '('.join( '|', sort keys %replace ).')';
and then use the value in $replace{$1}
if( exists $aeons{strange} ){ die $death unless ( $death%2 ) }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Testing for the presence of a hash key in a filename
by benizi (Hermit) on May 27, 2007 at 18:23 UTC |
In Section
Seekers of Perl Wisdom