in reply to Re^3: Passing a run time string to require
in thread Passing a run time string to require

Not sure what you are alluding to here. If you pull in UNIVERSAL::require, this has polluted the UNIVERSAL name space, and made the require method available everywhere. If you haven't pulled in Schwern's module, Perl will not find the sub UNIVERSAL::require.

If somebody else has a require method, or rather doesn't actually have one at the moment, but is dependent on AUTOLOAD being called, my calling in UNIVERSAL::require in a completely different module will stop this working, as Schwern's require will get called, not AUTOLOAD.

--
I'm Not Just Another Perl Hacker

  • Comment on Re^4: Passing a run time string to require

Replies are listed 'Best First'.
Re^5: Passing a run time string to require
by BUU (Prior) on Oct 23, 2004 at 09:07 UTC
    Oh, I read too quickly and missed the fact that it was a moduled-based method. I just assumed it was core.