my $fail=0; my @ErrMsg; my @forbidden=('porn','sex'); if (map {$Message =~ /$_/i} @forbidden){ $fail=1; # or $fail++; } if ($fail){ # or ($fail > 2) push @ErrMsg,"Bad Language Not Permitted"; }
In reply to Re: Bad Language In Contact Messages
by JayBee
in thread Bad Language In Contact Messages
by Milti
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |