in reply to Re^4: Writing to file...
in thread Writing to file...

Glob can be a real mess.
Could you give a concrete example? If this is the case, I would conclude that this is a bug to be reported. From doc:://File::Glob:
File::Glob::bsd_glob() implements the FreeBSD glob(3) routine, which is a superset of the POSIX glob() (described in IEEE Std 1003.2 "POSIX.2"). bsd_glob() takes a mandatory "pattern" argument, and an optional "flags" argument, and returns a list of filenames matching the pattern, with interpretation of the pattern modified by the "flags" variable. Since v5.6.0, Perl's CORE::glob() is implemented in terms of bsd_glob().

-- 
Ronald Fischer <ynnor@mm.st>

Replies are listed 'Best First'.
Re^6: Writing to file...
by Marshall (Canon) on Jul 24, 2009 at 20:40 UTC
    This glob() weirdness is at least an ActiveState issue in their version 5.6 series, especially when trying to make .exe files. They have made progress with this in Perl 5.10, but I actually don't know if it is completely fixed or not. The grep on a readdir will always work.

    There is sometimes differences between the "spec" and what the code actually does, especially when dealing with multi-platform issues and in particular Windows vs *nix.