s/.../.../;
means
$_ =~ s/.../.../;
The warning is issued when $_ contains undef.
In reply to Re^3: using s/ to not only substitute but also modify text
by ikegami
in thread using s/ to not only substitute but also modify text
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |