2 Einträge, 1 Seite |
1
2
3
4
5
6
open BADWORDS, "badwords.db" or die $!;
$found = 0;
for my $word (<BADWORDS>) {
$found = 1 if $message =~ /$word/;
}
1
2
3
4
5
6
7
open BADWORDS, "badwords.db" or die $!;
$found = 0;
for my $word (<BADWORDS>) {
(my $tmp = $message) =~ tr/ //d;
$found = 1 if $tmp =~ /$word/;
}
1
2
3
4
5
6
open BADWORDS, "badwords.db" or die $!;
$found = 0;
for my $word (<BADWORDS>) {
$found = 1 if $word =~ /$message/x;
}
2 Einträge, 1 Seite |