Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: default values

by mpd (Monk)
on Sep 16, 2003 at 02:03 UTC ( #291705=note: print w/replies, xml ) Need Help??


in reply to default values

Would $val = $val || $default_val; work for you?

Edit: Bah. Beaten to the punch :p and L~R's answer is more succinct anyway.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2021-11-27 09:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?