Well, you _can _ do this
$var="END";
This is my variable's
multiline text,
complete tith tabs\t\t and extra newline\n\n, etc
END
four spaces in the opening and closing quote. I usually use qq{ }
depending on how much I care about whitespace formatting.
This is not for CGI however, the problem is simple.
EOF must be at the beginning of the line, no white space in front of it
o _
/|/ | Jerrad Pierce \ | __|_ _|
/||/ http://pthbb.org . | _| |
\|| _.-~-._.-~-._.-~-._@" _|\_|___|___|
I know you've received other responses, but I'm doing a good bit of
this lately.
sub sendEmail {
open (Sendmail, "|/usr/lib/sendmail -oi -t ")
or die "Can't fork for sendmail: $!\n";
print Sendmail "EOF";
From: Bugs amy\@longsys.com
To: amy