in reply to Validate date value
eval { my $dummy = timelocal($sec,$min,$hour,$mday,$mon,$year); die "Day out of range" unless (localtime($dummy))[3] == $mday; };
Note that you also got accepted dates for the 31st of all other short months than just February: April, June, September, November. Now they'll all be caught.
|
|---|