Beefy Boxes and Bandwidth Generously Provided by pair Networks vroom
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Parameter validation for numeric function arguments?

by TomDLux (Vicar)
on Aug 20, 2011 at 22:36 UTC ( #921456=note: print w/ replies, xml ) Need Help??


in reply to Parameter validation for numeric function arguments?

The origin of perl was as a sysadmin tool, and in other situations where people frequently wanted results quickly, and might tolerate a few aberrations if they got the bulk of the results.

If you want to run a nuclear power plant, or a 747, definitely, validate your inputs.

If your boss wants you to extract some information from the web logs to see how soon the current heavy load will bring down the web site, take advantage of the fact that '123xyz' in a numeric context is treated as the number 123.

As Occam said: Entia non sunt multiplicanda praeter necessitatem.


Comment on Re: Parameter validation for numeric function arguments?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (9)
As of 2014-04-17 10:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (444 votes), past polls