> No it isn't. The =~ s stuff is totally unnecessary, as you're not passing
> the address on the command line to sendmail...
Maybe I didn't make myself clear. I *am* trying to pass the e-mail address
from the command line to sendmail. And yes, $recip *is* user\@domain.com --
I printed it to STDOUT, and it showed up just like that.
IMHO, if the script works fine when I have a hard-coded To: line, and my
$recip comes out a replica of my hard-coded To: line, it doesn't seem to me
to be a Perl problem.
Alex