It's kind of ugly, but it might be the best solution..my @varnames = qw{var1 var2 var3}; foreach my $var (@varnames) { if(${$var} eq "") {&complain}; }
In reply to Re: Validating the contents of scalars using an array based list
by Improv
in thread Validating the contents of scalars using an array based list
by JPaul
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |