Pattern matching won't help you here, I'm afraid. Date validation is notoriously a complex area. You need to check that the date is between 01-31 when the month is Jan, Mar, May, July, August, Oct, & Dec; is between 01-30 on other months except February; February has a special case on leap years... and so on.
I have yet to work on a project where date entry and validation has been a straight forward thing. (Maybe because of poor project management, but that's another topic...;-)) In each project I have worked on we have had to programmatically handle our date validation by a series of 'if' conditional tests. Sorry I can't provide you with the code, as it's commercially sensitive and not written in Perl anyway. As a general question to the group - are there any pre-written Perl Date validation modules? Maybe this will help our friend, and others? Phil Morley _______________________________________________ Perl-Win32-Admin mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
