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

Instead of two separate globs, you can do it in one, as in

</path/to/dude/{logs,logs2}/*.logs> # or </path/to/dude/logs*/*.logs> # or even </path/to/dude/*/*.logs>

Although the usage I showed above should be ok, glob has a few caveats one should be aware of: It does not list filenames beginning with a dot by default, and it splits its argument on whitespace, which may be important in case you are interpolating variables into the pattern - you can use File::Glob ':bsd_glob'; to alleviate the latter caveat. Make sure to read all of glob and File::Glob.