You can store the matches in an array:
$_ = 'abcd'; if (my @matches = /(.)(.)/) { for my $i (0, 1) { print "$i: $matches[$i]\n"; } }
In reply to Re: exist backreference variable list?
by choroba
in thread exist backreference variable list?
by PerlJam2015
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |