in reply to Re: Script to validate date fails
in thread Script to validate date fails
if ( eval { check_date( @date ) } )
Why eval?
if ( check_date( @date ) )
works just as well.
Update: Oops, no it doesn't! My version dies nastily if fed random alphanumerics or whatever.
In Section
Seekers of Perl Wisdom