Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
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') // '';


Comment on Re: Getting rid of an uninitialized warning
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (10)
As of 2014-12-26 11:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (171 votes), past polls