in reply to Re^2: Whitespace protection in glob expression for Windows network paths
in thread Whitespace protection in glob expression for Windows network paths

Um, Path::Tiny uses readdir so that you don't have to. File::Find::Rule uses readdir so that you don't have to. Its convenience, why spend 15min-2hours to reinvent Path::Tiny/File::Find::Rule each time you have a problem? File::Find::Rules is like cake (sweet), where File::Find is like raw flour, opendir/readdir is like wheatberries/otas/groats/whole wheet you have to grind into flour before you can bake your cake

So  my @kids = path( $programFiles )->children; easier than readdir , and more memorable than glob :)

  • Comment on Re^3: Whitespace protection in glob expression for Windows network paths
  • Download Code

Replies are listed 'Best First'.
Re^4: Whitespace protection in glob expression for Windows network paths
by Another Ed (Sexton) on Nov 12, 2014 at 10:40 UTC
    Thanks. I've been given 2 solutions that work well: directory handles, and bsd_glob. Probably 15 minutes to get a feel for each, after which additional coding time is negligible. I tend to steer clear of non-core modules unless they provide more significant advantages, but I'm sure both the ones to which you refer are very worthy. I'm a lover of muesli, so whole grains are fine by me. Do users of File::Find::Rule tend to be overweight? :-)