Your problem will be that the heredoc closing token 'EOF' need to be on a line by itself with no leading or trailing space. ie
print SENDMAIL <<"EOF"; [blah] EOF
You can also use the qq operator like this:
print SENDMAIL qq! [blech] !; close(SENDMAIL) or warn "sendmail didn't close nicely";
cheers
tachyon
s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print
In reply to Re: Perl Error
by tachyon
in thread Why doesn't Perl find my heredoc terminator?
by dshaw21369
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |