Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

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]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (5)
As of 2015-11-30 01:14 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (755 votes), past polls