Help for this page

Select Code to Download


  1. or download this
    while ($line = <>) {
        $symbol{ $_ }++ for ( split //, $line );
    }
    
  2. or download this
    while ($line = <>) {
        for ( split //, $line ) {
    ...
            $total++;
        }
    }
    
  3. or download this
    $total = eval (join '+', values %symbol); # :)