in reply to text file reading
Replace your print line with:
print "$_\n" while $_ = $line->getLine();
Perl is environmentally friendly - it saves trees
In Section
Seekers of Perl Wisdom
in reply to text file reading
Replace your print line with:
print "$_\n" while $_ = $line->getLine();