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