- or download this
use strict;
use warnings;
...
my @pieces = split /(\$\{.*?\})/, $string_exp;
print Dumper \@pieces;
- or download this
$VAR1 = [
'something in this string is a number. ',
...
'${=NumberFormat "9+"}',
'.'
];
- or download this
$VAR1 = [
'something in this string is a number. ',
...
'${=CharFormat "X*"}',
' is $=NumberFormat "9+"}.'
];