in reply to Validate date value

Hi,
... my $dummy; eval { $dummy = timelocal($sec,$min,$hour,$mday,$mon,$year); }; ...
will output:
$ perl 642627.pl Day '31' out of range 1..29 at 642627.pl line 13 This is an invalid date.
You define your $dummy within the eval{}, therefore it's invisible after eval finishes.
Regards,
svenXY