in reply to Print contents of text file line by line
ALWAYS START WITH THESE TWO LINES, FOR HELPFUL ERROR MESSAGES:
Edit: This was my mistake, oops:
Edit: Wrongish answer deleted...use strict; use warnings;
Edit: This was my mistake, oops:
my @line = <$fh>
STOP REINVENTING WHEELS, START BUILDING SPACE ROCKETS!—CPAN 🐪
In Section
Seekers of Perl Wisdom