* Alex Le Fevre <[EMAIL PROTECTED]> [010404 15:53]:
> > 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. 

You are NOT passing the e-mail address on the command line with sendmail. If
you were, your open() line would look more like:

  open MAIL, "|/usr/lib/sendmail -t $recip" ...

But it doesn't.

> 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. 

Why are you escaping the '@' with: s/\@/\\\@/ ?  There's no reason for it
whatsoever.

/pg
-- 
Peter Green : Gospel Communications Network, SysAdmin : [EMAIL PROTECTED]
---
Dad always thought laughter was the best medicine, which I guess is why 
several of us died of tuberculosis.
 (Jack Handey)

Reply via email to