Help for this page

Select Code to Download


  1. or download this
        #!/usr/local/bin/perl
    
    ...
        while (<>) { $tot += $_ }
        print "$tot\n";
    
  2. or download this
        #!/usr/bin/perl -pl
    
        $tot += $_ }{ $_ =+ $tot