in reply to Re^7: Can't figure out how to include LAST member of the array
in thread Can't figure out how to include LAST member of the array
cat myfile.txt | yourscript.pl
Don't bother the cat. A simple I/O redirection is sufficient here:
yourscript.pl < myfile.txt
And as a bonus, the version without cat also works on Windows.
See also Re: Perl output and uniq.
Alexander
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^9: Can't figure out how to include LAST member of the array
by bliako (Abbot) on Feb 10, 2021 at 23:19 UTC |