in reply to
file data vs data in script
while (<XLSFILE>)
already reads the file line by line, no point in splitting on newlines again (there will be just one line, ending in a newline). If you want all lines in an array, just do:
@accounts = <XLSFILE>;
, without an explicite
while
.
Comment on
Re: file data vs data in script
Select
or
Download
Code
Replies are listed 'Best First'.
Re^2: file data vs data in script
by
rev_1318
(Chaplain)
on Jan 24, 2005 at 10:35 UTC
and don't forget to
chomp @accounts
to get rid of unwanted newlines...
Paul
[reply]
[d/l]
In Section
Seekers of Perl Wisdom