Or there's always$infile ||= "blah"; #this will only set $infile="blah" when $infile is undefined.
$infile= ? $infile : "default";
In reply to RE: Defaults for command line args
by vroom
in thread Defaults for command line args
by ChuckularOne
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |