in reply to Re^2: Normal regexes stop working
in thread Normal regexes stop working

At some point you are saying your regex fails when you do:
$x =~ /$y/;
yes? That being the case, then do this for debugging:
my $match = $x =~ /$y/; printf "x=%s, y=%s\n", $x, $y unless $match;
So this will print out something every time they don't match, which is the case you are looking for, right?