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

Re: testing a non-existant hash entry...how to handle

by busunsl (Vicar)
on Mar 01, 2002 at 09:19 UTC ( [id://148517]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (6)
As of 2024-04-19 11:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found