Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
        $words += scalar(split(/\s+/, $_));
        print $out ("Words=$words\nCharacters=$chars\n");
    }
    
  2. or download this
    Words=10
    Characters=68
    ...
    Characters=475
    Words=116
    Characters=684