On the other hand, does it really matter?
It does to me, since I inspect the results of the regex, including @+ to see how many capture groups there were.
$ perl -wMstrict -le '""=~// or die; print for @+' 0 $ perl -wMstrict -le '""=~/(?:)/ or die; ""=~// or die; print for @+' 0 $ perl -wMstrict -le '""=~/()/ or die; ""=~// or die; print for @+' 0 0
Updated examples.
In reply to Re^4: Reset meaning of empty pattern?
by haukex
in thread Reset meaning of empty pattern?
by haukex
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |