On Dec 22, 2003, at 12:53 PM, Support wrote:
Thanks to all those who have replied
Just to update
This is the module call:
use Pcalc qw(Delta_Days Add_Delta_Days Date_to_Days leap_year check_date);
this is the sub call:
$startdate = Date_to_Days($tyear,$tmonth,$tday);
this is the error:
Undefined subroutine &main::Date_to_Days called at newcaldb.cgi(my main script) line 165
The module and main script are in the same directory.
are you running this on an IIS host?
You might want to put in
use FindBin; use lib "$FindBin::RealBin";
Since the code that is calling newcaldb.cgi either
a. did not cd into the directory where the cgi code and your perl module are suppose to be.
b. did not have '.' as a part of the @INC that it called.
c. may have some round about path based upon symbolic links.
and while we are at it, you do have that in the file
Pcalc.pm
in the same directory and it did start with
package Pcalc ;
ciao drieux
---
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>