in reply to Re^2: Piping many individual files into a single perl script
in thread Piping many individual files into a single perl script

$A and $B are the running totals for all of the files. You either need to make them arrays (indexed by file), or you need to print the totals when you reach the end of a file (after which, you would reset the variables to zero).
  • Comment on Re^3: Piping many individual files into a single perl script