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;
In reply to problem with INC by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |