in reply to array of MySQL data for substitution
use Regexp::List; my $l = Regexp::List->new; my $re = $l->list2re(@swearwords); [download]
$text =~ s/$re/****/g; [download]