On Tue Aug 18 2009 @ 7:55, Mihir Kamdar wrote: > I dont have Datetime module installed. Is there a way without using > DateTime?? I don't want to be glib, but I can see at least two broad possible options:
(1) Install DateTime (it's very worth it). (2) Rewrite all the relevant code from DateTime (it's very not worth it, except perhaps as a learning exercise or masochism). More seriously getting date arithmetic right can be very hard. Your particular need doesn't sound too complicated now (compare two dates to a fixed date), but I still wouldn't choose to recreate a solution for date parsing and comparison when there are good solutions easily available at CPAN. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/