of perldoc perlre
The numbered comparable variables ($ 1, $ 2, $ 3, etc.) and the associated punctuation set ($ +, $ &, $ `, $ 'and $ ^ N) are dynamically covered until the end or until the next successful match, depending from what comes sooner. (See "Connections" in perlsyn.)
, local . (& agrave; la local), . , $1 10 , , 20 10 , .
regex . ,
use strict;
use warnings;
sub bla {
my $x = shift;
$x =~ s/(\d*)/$1 $1/;
return $x;
}
my $y = "10 20";
my ($first, $second) = $y =~ /(\w*)\s+(\w*)/;
my $z = &bla($second);
my $w = $first;
print "$first $second\n";
$first $second , .