in reply to Passing a $Scaler into a while loop...

One other thing that the others seemed not to pick up on, probably because the line does not seem to have any functionality in this program:
my @cols = qw('data.txt');
You should not use quotes inside a qw(...) unless you actually want the quotes to be part of the data. qw will quote each item for you anyway.

Replies are listed 'Best First'.
Re^2: Passing a $Scaler into a while loop...
by chinamox (Scribe) on Oct 09, 2006 at 08:37 UTC
    Thank you! *goes hunting for quotes*