Think about Loose Coupling | |
PerlMonks |
Re^3: How to read the input directory from command line arguments using perl?by haukex (Archbishop) |
on Mar 23, 2017 at 08:37 UTC ( [id://1185570]=note: print w/replies, xml ) | Need Help?? |
You can read about the magic <> operator and its use in while loops in I/O Operators. In the code that bart posted, you would provide project.txt either on the command line, as in "perl script.pl project.txt", or by feeding it into the script's STDIN, as in "cat project.txt | perl script.pl".
In Section
Seekers of Perl Wisdom
|
|