in reply to writing formatted output to file

Consider moving the line open(FILE,">report.txt") or die "Can not open file"; before while loop. When you place it inside the loop, it overwrites every time what you have written previously.

Replies are listed 'Best First'.
Re^2: writing formatted output to file
by pugsly62 (Novice) on Feb 18, 2005 at 16:16 UTC
    Thanks! That took care of my problem. Scott