Before reading the above comments I used the localtime function of Time::Local to convert the dates into epochs and then comparing numerically.
But thanks as i was not knowing that the strings i.e 2007-12-01 and 2007-12-02 can be compared using the string operators for dates. Can anyone point me to how strings are compared. To be more ellaborate i can understand if strings like 2007-12-01 is less than 2007-12-02 but how can a string 2007-11-01 will be less than 2007-12-01 . -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/