G
Greg
Hi,
I would like to make life easier for myself my automating (as best as
possible) the removal of messages supplied by users.
If my incoming string is $input, I originally thought of searching as
follows:
<Pseudocode>
foreach my $rudeword in @RudeWordList {
if ($input =~ s/$rudeword/i) {
REJECT;
}
}
</Pseudocode>
However, this seems a rather unoptimised method of searching. Is there a
more optimised way of doing this?
Cheers,
Greg
I would like to make life easier for myself my automating (as best as
possible) the removal of messages supplied by users.
If my incoming string is $input, I originally thought of searching as
follows:
<Pseudocode>
foreach my $rudeword in @RudeWordList {
if ($input =~ s/$rudeword/i) {
REJECT;
}
}
</Pseudocode>
However, this seems a rather unoptimised method of searching. Is there a
more optimised way of doing this?
Cheers,
Greg