Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
June 6, 2008, 2:14 am
rate this thread
$MTo = 'email@example.com';
$MSubject = 'Something';
open(DOMAIL, "| mail -s $Msubject $MTo");
print DOMAIL <<"EndOfMessage";
First half mail body,
Second half mail body.
Does this mean the mail body before EndOfMessage will be sent to
filehandle DOMAIL, which inturn will be piped to mail for sending out?
What does << in the print statement mean? Have seen < read, > write,
and >> append, but couldn't find <<.