Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

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

by PrakashK (Pilgrim)
on Mar 01, 2002 at 15:08 UTC ( #148580=note: print w/ replies, xml ) Need Help??


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

How about this?

my $page = $input->param('page') || $input->param('defaultpage'); if ($page) { # do stuff .... }
This seems cleaner to me.

/prakash


Comment on Re: testing a non-existant hash entry...how to handle
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2015-07-28 04:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (252 votes), past polls