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

Re: null values

by LanceDeeply (Chaplain)
on May 26, 2005 at 17:09 UTC ( #460762=note: print w/replies, xml ) Need Help??


in reply to null values

no one mentioned my personal favorite: setting a default value using the or operator...
$myvariable = $q->param( "myinput" ) || ""; if ($myvariable eq "") { # no warnings }

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2022-12-08 09:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?