On 7/18/07, Michael G Schwern <[EMAIL PROTECTED]> wrote:
Craig A. Berry wrote: > The home-grown glob() implementation does not know what a tilde is, > and it returns VMS-format filespecs as absolute, not relative specs. > Both of these are contrary to the assumptions of various parts of > Module::Build and account for a number of test failures. The easiest > thing should be to override glob() and do a little pre-processing to > expand tildes and post-processing to convert paths from absolute to > relative. However, it has so far proven beyond my Perl foo to > override CORE::GLOBAL::glob in terms of itself without either getting > infinite recursion or having whatever I do in > Module::Build::Platform::VMS ignored from within Module::Build::Base.FWIW, you avoid the infinite recursion by calling CORE::glob() instead of just glob(). sub _fixed_glob { ... CORE::glob(...); ... } BEGIN { local *CORE::GLOBAL::glob = \&fixed_glob; }
That local doesnt seem right. Are you sure about that? -- perl -Mre=debug -e "/just|another|perl|hacker/"
