Syntactic Confectionery Delight | |
PerlMonks |
Re: only allow certain parametersby dws (Chancellor) |
on Aug 09, 2002 at 23:09 UTC ( [id://189091]=note: print w/replies, xml ) | Need Help?? |
The idea is that I only want to allow certain values to be passed as parameters, and I want to assign a default if the value passed is not one of the legal ones.
This approach hides problems. If you're going to do this, at least log failures so that they can be tracked down and resolved, rather than leaving clients scratching their heads of mysterious behavior.
In Section
Seekers of Perl Wisdom
|
|