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

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]
[LanX]: xD ... complicated countrie(s)
LanX reigned by the Duke of Normandy
[davies]: LanX: Politicians making jobs for each other, really. Results in unnecessary complications and tax bills with up to 5 levels of Govt busily inventing new crimes for people to commit.

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (11)
As of 2017-12-15 18:25 GMT
Find Nodes?
    Voting Booth?
    What programming language do you hate the most?

    Results (441 votes). Check out past polls.