Help for this page

Select Code to Download


  1. or download this
    > cat - >1.pl
    1
    ...
    Total value for the 3.pl : 3
    Total value accumulated from all the files
    is:6>
    
  2. or download this
    foreach my $file (@ARGV)
    {
    ...
        print "Total value for the $file : $sum\n";
        close( FILE );
    }