Help for this page

Select Code to Download


  1. or download this
    ++$char{$&} while (/[^\0-\x{7f}]/g);
    
  2. or download this
    foreach (unpack "U*") {
       ++$chars{$_}  if (ord($_) > 127);
    ...
    while (my ($ch, $count)= each %chars) {
       printf "character U+%04x seen $count times.\n", $ch;
       }