in reply to Taint Mode Doesn't Like SENDMAIL Pipe

Try adding a
$ENV{PATH}='/bin:/usr/bin:/usr/local/bin';
and then changing your open line to
open(MAIL,"| /usr/bin/sendmail -t") || die "$!";
(or where ever your sendmail lives).