I fail to see the problem. What do you expect from $_ ~~ $_ =~ s///?
Update: I suppose s/// could (should!) be added to the (long!) list of things that are treated as boolean in when.
In reply to Re: "when" and replacements
by ikegami
in thread "when" and replacements
by John M. Dlugosz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |