with something like this...if (defined $opt_targ){ $targ = $opt_targ } else {$targ='localhost';}
...following the "this breaks if zero is an acceptable value" admonition previously stated above...$targ = $opt_arg; $targ ||= 'localhost';
In reply to Re: Reduce Redundant Repetition
by mrbbking
in thread Reduce Redundant Repetition
by ybiC
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |