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

Re: Re: Re: Parsing your script's command line

by Not_a_Number (Parson)
on Sep 04, 2003 at 20:17 UTC ( #289002=note: print w/ replies, xml ) Need Help??


in reply to Re: Re: Parsing your script's command line
in thread Parsing your script's command line

Er...

I'm afraid I don't understand. Under what circumstances does:

$thing = 'default' unless defined $thing;

not work for $thing == 0? I'm confused. Could you show me some code where the behaviour of the above differs from:

$thing ||= 'default' unless defined $thing;

Thanks in advance,

dave


Comment on Re: Re: Re: Parsing your script's command line
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2014-07-12 19:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (241 votes), past polls