in reply to Re^3: Looping through multiple directories
in thread Looping through multiple directories

That’s not my way!

my $dirs1 = </cygdrive/c/Users/attwwwe1/Documents/dude/logs/*.logs>; my $dirs2 = </cygdrive/c/Users/attwwwe1/Documents/dude/logs2/*.logs>;

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:

my @logs1 = </cygdrive/c/Users/attwwwe1/Documents/dude/logs/*.logs>; my @logs2 = </cygdrive/c/Users/attwwwe1/Documents/dude/logs2/*.logs>;

And then you don’t need to glob again; just put the names of all the log files into @ARGV:

@ARGV = (@logs1, @logs2);

Hope that helps,

Athanasius <°(((><contra mundum Iustus alius egestas vitae, eros Piratica,