Closed einkoro closed 11 years ago
Short answer: use File::Glob ':bsd_glob'; and swap <> for bsd_glob() to fix this. -or- escape whitespace using regex on the paths first.
use File::Glob ':bsd_glob';
<>
bsd_glob()
I feel bsd_glob() and glob() is cleaner and a hell of a lot more readable when using variables than the double tripple quote madness in <>:
http://perldoc.perl.org/functions/glob.html
http://perldoc.perl.org/File/Glob.html
This might also affect modules meta files being loaded, or at least getting all the available modules, as it searches using <> for meta.pl in module directories if I remember correctly.
Short answer:
use File::Glob ':bsd_glob';
and swap<>
forbsd_glob()
to fix this. -or- escape whitespace using regex on the paths first.I feel bsd_glob() and glob() is cleaner and a hell of a lot more readable when using variables than the double tripple quote madness in <>:
http://perldoc.perl.org/functions/glob.html
http://perldoc.perl.org/File/Glob.html
This might also affect modules meta files being loaded, or at least getting all the available modules, as it searches using
<>
for meta.pl in module directories if I remember correctly.