> 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: 

use strict;
use warnings;
Always always while developing a script and afterward unless oyu have agood reason not 
to
 
> Undefined subroutine &main::Date_to_Days called at newcaldb.cgi (my main script) 
> line 165

Is Date_to_Days() Exported? See the Exporter module docs that will help you out.
In the mantime try :

my $startdate = Pcalc::Date_to_Days($tyear,$tmonth,$tday);

> The module and main script are in the same directory. 

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to