if (grep { $name eq $_ } @list and $ENV{REMOTE_ADDR} ne "$ip" ) {.....
Or the hash way...
my %hash = qw/name ip name2 ip2 name3 ip3/; if ( exists $hash{$name} and $ENV{REMOTE_ADDR} ne $hash{$name} ) {.... +..
Dave
In reply to Re: Testing form params
by davido
in thread Testing form params
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |