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