The behaviour of the match operator in void context doesn't appear to be documented, but is sensibly acts as if it was evaluated in scalar context.
$ perl -E'$_="abc"; /./g; /(.)/g; say $1' b
In reply to Re^2: nooby question about @+, @-
by ikegami
in thread nooby question about @+, @-
by rsFalse
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |