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 (Prior)
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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://289002]
help
Chatterbox?
and cookies bake in the oven...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2017-11-22 02:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (314 votes). Check out past polls.

    Notices?