Help for this page

Select Code to Download


  1. or download this
    use Encode;
    
    ...
    # case 4 - writing to a file or STDOUT
    binmode STDOUT, ":utf8";
    print $text;
    
  2. or download this
    sub ord_dump {
      join(' ', map { ord($_) } split(//, $_[0]));
    }
    print ord_dump($text), "\n";