CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Intermediate:
Strange error, script cannot locate the other script

 



digioleg54
User

Apr 14, 2017, 11:45 AM

Post #1 of 2 (1903 views)
Strange error, script cannot locate the other script Can't Post

I have a code in the program:

Code
#!/usr/bin/dwebenv perl 
BEGIN{
my($lib_path,$data_path);
$lib_path=$ENV{'DWEB_SITE_PATH'};
$data_path=$ENV{'DWEB_SITE_CGI_DATADIR'
}
use lib $lib_path."/lib/web/";

require "dteacl_b.pl";


When I run the script, it give an error

Code
Can't locate dteacl_b.pl in @INC (@INC contains: /lib/web/ /versions/perl-5.22.2/lib/perl5/site_perl/5.22.2/i686-linux /versions/perl-5.22.2/lib/perl5/site_perl/5.22.2 /versions/perl-5.22.2/lib/perl5/5.22.2/i686-linux /versions/perl-5.22.2/lib/perl5/5.22.2 /api .)


Why it is? I know precisely that dteacl_b.pl on /xxxx/yyyy/lib/web directory apache server


BillKSmith
Veteran

Apr 14, 2017, 8:16 PM

Post #2 of 2 (1890 views)
Re: [digioleg54] Strange error, script cannot locate the other script [In reply to] Can't Post

Use strict and warnings. Answer then question yourself!
Good Luck,
Bill

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives