Help for this page

Select Code to Download


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