There's more than one way to do things | |
PerlMonks |
Re: pass one or more directories into a file and use that as INPUT to a called scriptby perlfan (Vicar) |
on Aug 13, 2020 at 14:58 UTC ( [id://11120682]=note: print w/replies, xml ) | Need Help?? |
>it is just printing testDirectory1 and testDirectory2 line by line inside <testFile>
Well, looks like that's what you told it to do here:
If you want to get the contents of the directories, you'll need to checkout opendir or File::Find (and friends). For the best line of help, post more code for context. Particularly your options processing. And be sure to use strict; and use warnings;. Oh, Did you mean,
In Section
Seekers of Perl Wisdom
|
|