If you access your mail-box through a mail-reader / mail server, there are functions to delete a specific mail without downloading it. No need to use Perl for that.
CountZero
"If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law