http://qs1969.pair.com?node_id=617527


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 ) }