in reply to help on getting date

You can get dates using localtime.

Comparing dates is trickier. Dig through the Date:: and DateTime:: modules. The DateTime:: namespace is for a new project trying to unify Perl's mess of Date and Time modules into a single, consistant API, so look there first.

----
I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
-- Schemer

Note: All code is untested, unless otherwise stated