my form has dynamically generated input for file-to-upload-$u using syntax below, which works for the input form.
i want to do something like this:
my ($found, $num_files, $u);
for ($u=1;$u<=$MAXIMUM_FILES ;++$u) {
if ($in{'file-to-upload-$u'}) { $found = 1; }
}
if ($found) { do something here }
it isn't working. i googled some perl info and it seems this isn't allowed. is there some way to accomplish what i want?
i want to do something like this:
Code:
my ($found, $num_files, $u);
for ($u=1;$u<=$MAXIMUM_FILES ;++$u) {
if ($in{'file-to-upload-$u'}) { $found = 1; }
}
if ($found) { do something here }
it isn't working. i googled some perl info and it seems this isn't allowed. is there some way to accomplish what i want?