Help for this page

Select Code to Download


  1. or download this
    print ":$_:", ord($_), "\n" for (split //, $str)
    
  2. or download this
    my $copy = $str;
    $str =~ s/([^\x20-\x7E])/sprintf '\x{%02x}', ord $1/eg;
    print $str, "\n";