The DELETE statement is SQL, not perl. As such, it needs to be quoted, and passed to $dbh->do("SQL here");
Be careful to properly escape quotes, when passing SQL to do().
There is no time like the present for postponing what you ought to be doing.
In reply to Re^3: Deleting Old MySql Records With PERL
by NetWallah
in thread Deleting Old MySql Records With PERL
by Milti
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |