Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2018-06-23 01:32 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (125 votes). Check out past polls.