It might be slightly less cumbersome and still be quite legible to use something like this:
for my $param ($server, $database, $user, $password, ... $sendmail, $initversion) { help() and last if ($param eq q{}); }
In reply to Re: checking values of variables
by Laurent_R
in thread checking values of variables
by fionbarr
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |