- or download this
#!/usr/bin/perl
use strict;
use warnings;
...
my $text = 'name => "foo", fav.num => 3';
my @text = split /($VALUE)/ => $text;
print Dumper \@text;
- or download this
$VAR1 = [
'name => ',
'"foo"',
...
'num => ',
'3'
];
- or download this
$VAR1 = [
'name => ',
'"foo"',
', fav.num => ',
'3'
];