http://www.perlmonks.org?node_id=289002


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