Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: How to read the input directory from command line arguments using perl?by bart (Canon) |
on Mar 22, 2017 at 04:28 UTC ( [id://1185398]=note: print w/replies, xml ) | Need Help?? |
I'll assume you can have more than one project.txt file in different locations, and that the directory is relative to the directory that project.txt file is in. $otherscript contains the script that starts with the code you gave.
Then you can do something like:
Alternatively you could put this code somewhere inside the $otherscript and call the relevant function instead of the system call.
In Section
Seekers of Perl Wisdom
|
|