Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
hello monks ,
I have this small code :
I am running the script from /home/user/scripts/myscripts which is one level lower than the directory containing kp1 but every time I run it , i get an error saying it can't use or find kp1 even though I put the correct path for $dir where the kp1 sits , any idea? thanks#!/usr/local/bin/perl my $dir = "/home/user/scripts"; push (@INC, $dir); use kp1; sub num1 { kp1::hello (8); } &num1;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: problem with INC
by broquaint (Abbot) on Jan 21, 2004 at 16:18 UTC | |
Re: problem with INC
by ysth (Canon) on Jan 21, 2004 at 16:14 UTC | |
Re: problem with INC
by blue_cowdawg (Monsignor) on Jan 21, 2004 at 16:18 UTC | |
Re: problem with INC
by tcf22 (Priest) on Jan 21, 2004 at 16:14 UTC |
Back to
Seekers of Perl Wisdom