go ahead... be a heretic | |
PerlMonks |
Re^4: Looping through multiple directoriesby Athanasius (Archbishop) |
on Dec 26, 2017 at 10:15 UTC ( [id://1206196]=note: print w/replies, xml ) | Need Help?? |
That’s not my way!
If you’ve decided to glob each directory separately, you need to store the results of each glob operation in an array, not a scalar:
And then you don’t need to glob again; just put the names of all the log files into @ARGV:
Hope that helps,
In Section
Seekers of Perl Wisdom
|
|