Given:
This triggers a warning of Use of uninitialized value in concatenation (.) or string whenever the regex matches.while(<>) { s/(\d),(?=\d)/$1|$2/g; print; }
Which I don't comprehend:
$_ is defined
$1 and $2 are both defined when the match occurs.
So why does the warning trigger?
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |