Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: @INC

by chromatic (Archbishop)
on May 02, 2000 at 07:43 UTC ( [id://9887]=note: print w/replies, xml ) Need Help??


in reply to @INC

There are at least three ways I can think of. You could push the appropriate directory onto @INC in a BEGIN block, so compilation won't fail:
BEGIN { push @INC, "/usr/lib/perl5/site_perl/Cobalt"; }
You can use the -I switch in your hashbang line: #!/usr/bin/perl -w -I/usr/lib/perl5/site_perl/Cobalt My favorite is the use lib syntax: use lib "/usr/lib/perl5/site_perl/Cobalt"; The Perl faq says you can also modify the PERLLIB or PERL5LIB environmental variables. Check your .profile or .blahrc files there.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (9)
As of 2024-03-28 09:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found