in reply to Module: Override Function Calls
I'm not sure what you're looking for.
If you're parsing command-line arguments, look at the Getopt family of modules. If you're trying to validate parameters passed to your modules' subroutines, you might look at Params::Validate. If you're interested in general data validation, take a look at Data::Validate and its relatives.
Of course, if your concern is trusting user input (which seems likely given that you mention security), you may want to combine one or more of the above with using perl's -T switch to turn on taint mode (see perlsec). This will cause errors to be thrown whenever a script/module attempts to do something potentially insecure with user-supplied ("tainted") data.
The Untaint module might be helpful in the way of building your "sanitizers".
|
|---|