bitpiston / oyster

A Perl web application framework.
Other
3 stars 1 forks source link

glob <> splits on whitespace in paths for xslclean and xslcompiler #73

Closed einkoro closed 11 years ago

einkoro commented 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.

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.