Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: null values

by LanceDeeply (Chaplain)
on May 26, 2005 at 17:09 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (4)
As of 2024-04-26 01:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found