beginr has asked for the wisdom of the Perl Monks concerning the following question:
have two pl files different locations
1./var/apache/cgi-bin/pomap.pl
2 /home/cg204017/test.pl
I am want to use the function in test.pl in pomap.pl.
I am using the following code.
#!/usr/bin/perl use lib "/home/cg204017"; use strict; use warnings; use diagnostics; use DBI; use CGI qw/:standard/; require 'test.pl';
when i am running (./pomap.pl)in terminal it shows no error. i am opening the same in browser its not working
please help me out
Code tags added by GrandFather
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: including one .pl file in another
by davorg (Chancellor) on Sep 15, 2006 at 10:53 UTC | |
|
Re: including one .pl file in another
by blue_cowdawg (Monsignor) on Sep 15, 2006 at 12:32 UTC |