in reply to Re^15: Perl vs C
in thread Perl vs C

Glob() is easy, but not portable.
So what? Just refrain from it if portability is an issue. It may surprise you, but large volumes of code are written where portability isn't an issue at all.

Replies are listed 'Best First'.
Re^17: Perl vs C
by Marshall (Canon) on Mar 16, 2009 at 18:14 UTC
    I'm not surprised at all! The thing where this really bit my rear-end was a multi-version-Windows platform deployment. It turns out that these Windows names with spaces in them and other weirdo "DOS" names can cause problems! I haven't seen a problem yet on a *NIX platform.

      Of course, directories with spaces in their names will have the same problems on Unixish platforms just as well. Which is why bsd_glob, as exported by File::Glob, is the far saner approach to globbing.