Your second solution is no solution:
$_ = '!'; $s = \'No'; s//$$s/; print;
You'd need to empty out $_ first, so the local $_ is the way.
In reply to Re^2: when $$s =~ m/\G.../gc is too verbose
by Corion
in thread when $$s =~ m/\G.../gc is too verbose
by stefp
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |