it is invalid because it contains double quotes. If I ignore the surrounding quotes, there is nothing wrong with
. I cannot interpret them as valid Perl code because
is not. If there is any consistent way to read your examples, I cannot find it. You want a Perl solution. Please post your test cases as valid Perl strings.