in reply to HTML file or in-memory ?

Use
$html .= ...
instead of
print DAT ...
and initialize it by setting
my $html = "";
instead of the open call. Afterwards, i.e. at the time of the close call, your HTML page will be held in the variable $html, instead of in that file — ready for you to attach it to the mail.

Replies are listed 'Best First'.
Re^2: HTML file or in-memory ?
by Anonymous Monk on Dec 15, 2004 at 14:28 UTC
    Thanks. This worked a treat