http://qs321.pair.com?node_id=283951


in reply to Parsing your script's command line

Very nice, ++

However, I have a small question on this snippet:

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

Surely the || is redundant here?

my $thing = shift; $thing = 'default' unless defined $thing;

This seems to do the job just as well?

Or am I missing something?

thx

dave