Avox has asked for the wisdom of the Perl Monks concerning the following question:

Howdy all,
I'm doing some work that requires some Date calculations. Date::Calc seems to be what I need. I'm using Activestate Perl 5.6.1 on Windows NT. I've downloaded the precompiled binary from Activestate. I installed it per their instructions. (it no longer croaks on the use Date::Calc;)
When I try to run my scripts, but get this error:
Undefined subroutine &main::check_date called at test2.pl line 4.

here is the script I am trying to run, I've simplified it a bit to eliminate any errors caused by unrelated issues:
use strict; use Date::Calc; check_date("2000","05","30");


Any suggestions, debuggin tips, good recipes, amusing jokes?
Thanks for any help you can offer!

Replies are listed 'Best First'.
Re: trouble installing module. perl cannot find functions
by Abigail-II (Bishop) on Jun 27, 2003 at 13:56 UTC
    Date::Calc doesn't export anything by default. Use:
    use Date::Calc qw /check_date/;

    or

    Date::Calc::check_date (2000, 5, 30);

    Abigail

      Abigail, that did it. Thank you so much!