Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://921456]
[choroba]: Discipulus BTW, I loved Settembrini by Mulino Bianco years ago in Italy
[choroba]: then they stopped producing them...
[choroba]: But it seems they make them again?

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (7)
As of 2017-04-27 10:37 GMT
Find Nodes?
    Voting Booth?
    I'm a fool:

    Results (503 votes). Check out past polls.