in reply to Re^4: Overriding the built-in require function (@INC)
in thread Overriding the built-in require function
Modifying the @INC to include a code ref wouldn't allow for this - you merely return the code (via a filehandle), but at this point, it hasn't been compiled, so you can't interact with it yet.
Oh, but you can :-). You just have to do a bit of work. I just recently described this in Re^3: Notification on module load, and redefinition of module methods.. Enjoy!
lodin
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^6: Overriding the built-in require function (@INC)
by Tanktalus (Canon) on Feb 07, 2008 at 00:08 UTC | |
Re^6: Overriding the built-in require function (@INC)
by /dev/urandom (Beadle) on Feb 07, 2008 at 21:09 UTC |