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

Hey, I started programming perl about 2 years (or so) ago. However, I've been busy for the last oh year hehe and I've just gotten back into perl. Anyways... I want to make a countdown program... Like to countdown the amount of days/hours/minutes/seconds left in the school year or whatever. But I'm not sure how to put the calendar together; some months have 31 days and other's don't. How could I properly count down the amount of days/months? Should I just declare each month an Array or make a multidemensional-hash? Is there a more efficent way?

Thanks,
Emmitt

Replies are listed 'Best First'.
Re: Countdown program
by mattriff (Chaplain) on Apr 21, 2002 at 19:00 UTC
Re: Countdown program
by belg4mit (Prior) on Apr 21, 2002 at 18:54 UTC
    You might find Date::Calc useful. Specfically the Delta methods.

    --
    perl -pew "s/\b;([mnst])/'$1/g"