in reply to testing a non-existant hash entry...how to handle

'==' and '!=' are for numerical testing, you should use 'eq' and 'ne' for alpha comparisons.

You can test for the existence of a cgi parameter like this:

if ( ! defined $input->param('page') && defined $input->param('default +page') ) {

Replies are listed 'Best First'.
Re: Re: testing a non-existant hash entry...how to handle
by S_Shrum (Pilgrim) on Mar 01, 2002 at 09:58 UTC

    That's the stuff...thanx.

    ======================
    Sean Shrum
    http://www.shrum.net