Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Module Loading Tool

by jasonk (Parson)
on Aug 14, 2008 at 00:56 UTC ( [id://704268]=note: print w/replies, xml ) Need Help??


in reply to Module Loading Tool

You can put a code reference into @INC, which will be called by require when attempting to load a module. If the code reference returns undef, then require will continue on using the rest of @INC...

unshift( @INC, sub { my ( $self, $path ) = @_; $path =~ s#/#::#g; $path =~ s/\.pm$//; print "INC: $path\n"; return undef; } );

www.jasonkohles.com
We're not surrounded, we're in a target-rich environment!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://704268]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (4)
As of 2024-04-25 07:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found