Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: problem with INC

by ysth (Canon)
on Jan 21, 2004 at 16:14 UTC ( [id://322925]=note: print w/replies, xml ) Need Help??


in reply to problem with INC

The push(@INC...) happens when your script is running, but the use kp1 happens at compile time, when @INC is not yet set. Two ways to fix it:
# make sure not to use a variable that is only set at run time BEGIN { push (@INC, "/home/usr/scripts"); } use kp1;
or
use lib "/home/usr/scripts"; use kp1;

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (5)
As of 2024-04-25 21:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found