- or download this
use strict;
use warnings;
...
$json->allow_blessed(1);
print $json->encode($test);
- or download this
{"str":"this is a string","regex":null}
- or download this
use strict;
use warnings;
...
my ($secondWord) = $andBack->{str} =~ $andBack->{regex};
print "Second word is: $secondWord\n";
- or download this
YAML: ---
regex: !!perl/regexp (?-xism:\w+\W+(\w+))
str: this is a string
Second word is: is