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
In Section
Tutorials