I can't seem to reproduce the problem you describe with this code and sample input. On my machine, if I add newlines to the output, I get:
FreeSpace 0 95342874624 93108276 2119757824 2070076 3295703040 3218460
Does this example code exhibit the problem on your machine, or have you perhaps simplified your actual code a little bit too much and removed the code that is causing the problem?
Note that you should be doing use warnings; use strict; at the beginning of your script; this would be telling you that Argument "FreeSpace" isn't numeric in division (/), since you can't use numeric division on the string "FreeSpace". But I don't think that would be the source of the problem you describe. In any case, you can skip the header line by doing something like my $header = <$fh>; just before the loop.
In reply to Re: Arrays and division not working...
by Anonymous Monk
in thread Arrays and division not working...
by Vishza
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |