Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    
    $tot += $_ for map {++$counter; $wanted{$_}} grep {exists $wanted{$_}}
    + split //, $str;
    print "Found $counter letters totaling $tot\n";
    
  2. or download this
    Found 9 letters totaling 81