Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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
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 examining the Monastery: (4)
As of 2021-05-13 06:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Perl 7 will be out ...





    Results (134 votes). Check out past polls.

    Notices?