- or download this
if ( my (@caps) = ($line =~ $re) ) {
no warnings 'uninitialized';
...
$cb->(@caps);
last;
}
- or download this
my (@matches) = ($line =~ $re)
if (defined $&) {
$cb->(@matches);
last;
}
- or download this
use v5.12;
use warnings;
...
}
}
}
- or download this
****** str=<AB>
...
matched
no captures