in reply to
Reading file contents into an array
You probably want:
my @names = <FILE>; chomp @names;
[download]
The while loop is not needed.
Comment on
Re: Novice
Download
Code
In Section
Seekers of Perl Wisdom