rodry has asked for the wisdom of the Perl Monks concerning the following question:
Since there are more than ten fields in the form, I decided it would be quicker to store the variables in an array and then iterate thru them. Sort of like this:
Is there a better way?@variablearray = \($variable1, $variable2, ....); foreach (@variablearray) { if (!$_){ $fieldempty = 1; } }
Originally posted as a Categorized Question.
|
|---|