in reply to sumof - attempting to sum a column from each file

You are resetting and redeclaring $sumof inside the loop. Therefore, it cannot hold the sum value when you print it.
You can use strict and warnings to make Perl guard these (and many more) errors.
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
  • Comment on Re: sumof - attempting to sum a column from each file

Replies are listed 'Best First'.
Re^2: sumof - attempting to sum a column from each file
by ricky5ive (Initiate) on Sep 14, 2012 at 23:19 UTC
    I think I'm going to rewrite my script from scratch to get a better hang of the suggestions and see the whole picture as I write it. I appreciate all your input, as this has greatly helped me.