- or download this
chomp( (undef, $_, undef, @words) = <> );
...
pop @submatches;
print join ' ', map { $restore_case{ scalar reverse } } @submatches
- or download this
m/^
(?:
...
# $^N - last captured group
)+
$/x;
- or download this
":aa2bb4cc6dd8" =~ / (:)
(?{ [] }) # initialize $^R
...
(?{ [@{$^R}, [$2, $3]] })
)*
/x;
- or download this
my @R;
":aa2bb4cc6dd8" =~ / (:)
...
(?{ push @R, [$2, $3] })
)*
/x;
- or download this
use Data::Dumper;
sub dd { print Dumper(shift) };
...
/x;
dd @{ $^R }[ -1 ]
- or download this
use Data::Dumper;
sub dd { print Dumper(shift) };
...
/x;
dd @R[ -1 ]
- or download this
$VAR1 = [
'dd',
'8'
];