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

Thanks RichardK for another good suggestion. I've tried this, and it also seems to do the trick nicely: minimal changes to existing code, and I can dispense with the nested quotes. The only funny was that the File::Glob in my Strawberry Perl doesn't seem to export bsd_glob, so I had to call it by its fully qualified name, but that's no hardship. The only funny is that in the version of File::Glob in Active State Perl 5.10.1, the :bsd_glob export tag isn't recognised, but the function itself is still exported: use File::Glob 'bsd_glob';.

I see the manual page for File::Glob refers also to File::DosGlob, but I was a little too put off by the latter's manual page to take that idea any further.

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