Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

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


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,


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://289002]
[Corion]: Discipulus: Better buy a new PC (well, self-build one from parts) than buy a new car :-)
[choroba]: the boot time on my laptops is more than satisfactory, but the desktop boots in 30+ secs
[choroba]: because of some problems of the wicked with systemd :-(
[Corion]: choroba: Just imagine how bad it must be without systemd ;-D
[choroba]: but I'm not sure it's worth my time...
NodeReaper shudders

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (9)
As of 2017-07-27 09:16 GMT
Find Nodes?
    Voting Booth?
    I came, I saw, I ...

    Results (407 votes). Check out past polls.