Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Re^2: Script to validate date fails

by Not_a_Number (Parson)
on Feb 16, 2012 at 17:15 UTC ( #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.

Comment on Re^2: Script to validate date fails
Select or Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (15)
As of 2015-07-28 13:43 GMT
Find Nodes?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...

    Results (255 votes), past polls