Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: only allow certain parameters

by dws (Chancellor)
on Aug 09, 2002 at 23:09 UTC ( [id://189091]=note: print w/replies, xml ) Need Help??


in reply to only allow certain parameters

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.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2024-04-24 18:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found