in reply to Sending mail help
Or assign the return value of the function to a variable, and put that inside the heredoc to interpolate normally.print SENDMAIL << "EOF"; From: me\@abc.com To: you\@xyz.com EOF print SENDMAIL fuction(arguments); close(SENDMAIL);
my $text = function(arguments); print SENDMAIL << "EOF"; From: me\@abc.com To: you\@xyz.com $text EOF close(SENDMAIL);
|
|---|