Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: only allow certain parameters

by dws (Chancellor)
on Aug 09, 2002 at 23:09 UTC ( #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? | Other CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2023-01-30 17:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?