in reply to Installing modules help

What is this Date::DateCalc module, where did you get it?

How is it related to Date::Convert::Gregorian??

What is the stray "Date::Convert::Julian" in there?

  • Comment on Re: Installing modules help ( Date::DateCalc )

Replies are listed 'Best First'.
Re^2: Installing modules help ( Date::DateCalc )
by cyates (Novice) on Jul 14, 2013 at 01:41 UTC

    Date::DateCalc is from CPAN. The newer versions of Perl do not include this module as standard. Georgian time is the date and time we currently use. The Julian time is the time I wish to convert to. Julian date is part of Date::Convert, which is contained in Date::Calc. Changing the code to

    #!/usr/bin/perl use strict; use warnings; use Carp; use Date::DateCalc; <code> $date=new Date::Convert::Julian(1997, 11, 27); @date=$date->date; print $date->date_string, "\n";

      Date::DateCalc is from CPAN. The newer versions of Perl do not include this module as standard

      No, there is no "Date::DateCalc" module on cpan, it doesn't exist

      Changing the code to

      Well, now you introduce other typos -- that code won't compile, see Read this if you want to cut your development time in half!

        Ah. Made me feel pretty dumb. As soon as I changed it to Date::Calc I stopped getting the error. However, when I rechecked CPAN (http://search.cpan.org/~morty/DateConvert-0.16/Convert.pm) I realized the code I copied from the synopsis was incorrect:
        use Date::DateCalc; $date=new Date::Convert::Gregorian(1997, 11, 27); @date=$date->date; convert Date::Convert::Hebrew $date; print $date->date_string, "\n";