in reply to Search a SQL Table and Delete Records
Sure, just use DBI to connect to your database and use whatever SQL statement you use for spam removal:
use strict; use warnings; my $DB = DBI::connect(....); $DB->do(q{ delete from comments where message like '%SPAM%' });
As you can see, you don't really even need perl, since you can do it in the database.
Note: Untested.
As many will tell you, the hard part isn't doing the deletions, it's coming up with a reliable spam recognizer....
...roboticus
When your only tool is a hammer, all problems look like your thumb.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Search a SQL Table and Delete Records
by Katanya (Novice) on Aug 29, 2014 at 01:33 UTC | |
by ww (Archbishop) on Aug 29, 2014 at 01:56 UTC | |
by Katanya (Novice) on Aug 29, 2014 at 02:08 UTC | |
|
Re: Search a SQL Table and Delete Records
by Katanya (Novice) on Aug 30, 2014 at 06:58 UTC | |
by poj (Abbot) on Aug 30, 2014 at 18:06 UTC | |
by Anonymous Monk on Aug 30, 2014 at 18:25 UTC | |
by Katanya (Novice) on Sep 20, 2014 at 07:06 UTC |