UNIVERSAL::require
As I already said here: That module has a huge caveat and I wouldn't recommend it. It adds two methods to the UNIVERSAL class, the base class for all Perl classes. This means that loading this module can affect every single class and object in the program.
I'm also not sure how it applies to the OP's question, I see nothing in its documentation regarding @INC, instead it "works exactly like Perl's require".
|