in reply to Re: Installing modules help ( Date::DateCalc )
in thread Installing modules help

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";

Replies are listed 'Best First'.
Re^3: Installing modules help ( Date::DateCalc )
by Anonymous Monk on Jul 14, 2013 at 01:47 UTC

    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";