Keep It Simple, Stupid | |
PerlMonks |
Use Params::Validate or a similar moduleby rrwo (Friar) |
on Jun 29, 2005 at 10:16 UTC ( [id://470953]=note: print w/replies, xml ) | Need Help?? |
I would take a look at Params::Validate, Params::Smart (shameless plug ;) or one of the many other Params::* modules to do the work of setting default values as well as validating then.
In Section
Seekers of Perl Wisdom
|
|