Help for this page

Select Code to Download


  1. or download this
    #require 5.6;
    use strict;
    use warnings;
    ...
        print "$char found $chars{$char} times\n";
    }
    print "found ". keys(%chars) . " distinct non-ascii chars\n";
    
  2. or download this
    while(<>){
      while (my @matches = /[^\x{1}-\x{7f}]/g){
    ...
         ++$chars{$&};
      }
    }