Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Getting rid of an uninitialized warning

by wind (Priest)
on Jun 23, 2011 at 20:55 UTC ( #911160=note: print w/replies, xml ) Need Help??


in reply to Getting rid of an uninitialized warning

The Defined-Or operator // is what you want:

my $c_enabling = param('enabling') // '';

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://911160]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2017-11-25 08:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (355 votes). Check out past polls.

    Notices?