- or download this
use Modern::Perl;
use Data::Dumper;
...
}
say Dumper \@array;
- or download this
$VAR1 = [
{
...
'chapter' => '2.'
}
];
- or download this
/(\d+\.\d*)\s+\.+\s+(\S+)\s*/g
^ ^ ^ ^ ^ ^ ^ ^ ^
...
| | + - Capture zero or more digits
| + - Capture a period
+ - Capture one or more digits