in reply to strange behaviour: continue with \G and /gc and look forward
>>
$a and $b are special variables which I'd recommend avoiding except for their special purposes. See perlvar: $a for more information. --
kcott (cite from
Re^3: Switch/Format to not interpret metacharacters in regex?)