http://www.perlmonks.org?node_id=954528


in reply to Re: Script to validate date fails
in thread Script to validate date fails

BTW, "validate valid date" has a nice ring to it :)

Good point. If we only need to validate valid dates, then the following should work:

print("Enter the date in dd-mm-yy format: "); while(<STDIN>) { print("You have entered valid data\n"); }