Here's one way to do it</p.
#!/usr/bin/perl use strict;use warnings; print while ( <> );
You'd run it by invoking the program name followed by the name of the text file: program.pl textfile.txt
In reply to Re: Print contents of text file line by line
by jbodoni
in thread Print contents of text file line by line
by TonyNY
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |