in reply to check for undefined param name

You can check for undef simply by using the defined function:
if (!defined ($query->param('loc'))) { $user->thwap(); }
Of course, what kind of action you take is up to you.

Replies are listed 'Best First'.
Re: Re: check for undefined param name
by mla (Beadle) on Apr 02, 2002 at 21:34 UTC
    We should also check whether it has a length in this case, since it could be the empty string (e.g., if loc=&foo=bar is passed).