in reply to
Reading a file into an array
I don't know
how
you used foreach and chomp to get bupkis - (unless you had "bupkis" in the file ;-)
You could do this:
@ssg=<SSG>; chomp @ssg;
[download]
You could also use
File::Slurp
, and chomp the return from that...
Comment on
Re: Reading a file into an array
Download
Code
In Section
Seekers of Perl Wisdom