in reply to Multiple routes that execute the same action
my %input= $cgi->Vars(); foreach $name (keys %input){ $value = $input{$name}; } #now test for conditions if ((-e $input{"whatever") && (-e $input{"wherever") ) { your subroutine goes here } # I may have missed some details involving autovification of hash keys +, # and grepping the %input hash keys may be better, but right now, # I'm not sure of the cleverest way to grep an array for 2 values. # I leave that to you, or a more clever monk than me.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Multiple routes that execute the same action
by Anonymous Monk on Mar 28, 2014 at 18:24 UTC |