in reply to
Hash Key vs. Quantifier Ambiguity in Regex Context
Use
/$x{'1'}/
for the regex. Perl treat
/$x{1}/
as match $x exactly 1 time {1}.
Boris
Comment on
Re: Hash Key vs. Quantifier Ambiguity in Regex Context
Select
or
Download
Code
In Section
Seekers of Perl Wisdom