I've read the Exporter docs and the module seems to be OK there. I'm pretty sure everything is OK with the module and the export/import functions.
Using 'strict' and 'warnings' is telling me:
'Use of uninitialized value in length at newcaldb.cgi line 165'
and I still sub error when I run the script at that point.
At 03:02 p.m. 22/12/2003 -0600, you wrote:
> 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 :
I've read these, but my module conforms to these specs.
my $startdate = Pcalc::Date_to_Days($tyear,$tmonth,$tday);
Sorry this does not work either
> The module and main script are in the same directory.
-- Incoming mail is certified Virus Free. Checked by AVG Anti-Virus (http://www.grisoft.com). Version: 7.0.209 / Virus Database: 261.5.2 - Release Date: 20/12/2003
-- Outgoing mail is certified Virus Free. Checked by AVG Anti-Virus (http://www.grisoft.com). Version: 7.0.209 / Virus Database: 261.5.2 - Release Date: 20/12/2003
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>