Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^2: Script to validate date fails

by Not_a_Number (Prior)
on Feb 16, 2012 at 17:15 UTC ( [id://954289]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://954289]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2024-04-18 22:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found