Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^2: validating sub arguments

by bluto (Curate)
on Mar 02, 2007 at 18:29 UTC ( #602926=note: print w/ replies, xml ) Need Help??


in reply to Re: validating sub arguments
in thread validating sub arguments

I guess the question you should be asking, why is unsafe data getting passed to subroutines/methods in the first place.

Perhaps from the programmer mistyping the argument list or misunderstanding the interface?

Validating data from external sources is always needed. Validating data from internal sources is very useful during development and testing (ala C's assert()) and sometimes during production. Params::Validate has helped save me from my own bad memory/typing a number of times. It's not too hard to set it up so you can remove it from production code easily if that's what you want.


Comment on Re^2: validating sub arguments

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (15)
As of 2014-07-25 19:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (174 votes), past polls