Subject: | Incorrect global override |
The CORE::GLOBAL::glob override forwards to File::Glob::bsd_glob if the caller did not load
List::Maker. That is not what perl uses by default, which would be File::Glob::csh_glob instead.
Hence, loading List::Maker anywhere in a program will cause <* .*> to stop working elsewhere.
Why not just export glob in import, instead of overriding it globally?
And if you need to override it globally, for some reason, then you should save the previous
CORE::GLOBAL::glob in a variable, if it exists, and then delegate to that, or to the built-in glob
function if CORE::GLOBAL::glob does not exist.