Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: @INC

by Cubes (Pilgrim)
on Jul 26, 2001 at 02:38 UTC ( [id://99837]=note: print w/replies, xml ) Need Help??


in reply to Adding to or changing @INC

use lib

Update: This is better than simply adding to @INC for a couple of pretty obscure reasons that I had to look up: use lib does some magic with architecture specific directories, and it saves off the original @INC for you in case you need it later.

Replies are listed 'Best First'.
Re (tilly) 2: @INC
by tilly (Archbishop) on Jul 26, 2001 at 07:00 UTC
    Most people will notice a less obscure benefit. lib does its thing at compile time, which means that the change to @INC happens before other modules load. Otherwise you need to use a BEGIN block.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2024-09-18 11:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The PerlMonks site front end has:





    Results (24 votes). Check out past polls.

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.