Help for this page

Select Code to Download


  1. or download this
    $ perl -E '
     use utf8;
    ...
     print Dumper($data);
     '
    $VAR1 = " { \"cat\" : \"text \x{2013} abcd\" } ";
    
  2. or download this
    
    $ perl -E 'use utf8;
    ...
     '
    Wide character in say at -e line 4.
     { "cat" : "text – abcd" }
    
  3. or download this
    $ perl -E 'use utf8;
     my $data = qq( { "cat" : "text – abcd" } );
    ...
     say $data;
     '
     { "cat" : "text – abcd" }