Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://148580]
help
Chatterbox?
NodeReaper eyes the thorns in the side
Discipulus : the party puller!
[Discipulus]: I was trying to solve this but i'm not. my regex-fu is stuck at primary school

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (6)
As of 2017-12-18 21:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (499 votes). Check out past polls.

    Notices?