Thanks!
Yes, it is simply an HTML chunk without any Perl code, though I can add some if it would help. Maybe just some [tt]print "some HTML to the browser";[/tt] would help.
But your code is exactly what I was looking for. After trying it and viewing the resulting source code in the browser, nothing printed from the last line just above the code and it does not die. Here is a simplified version:
[tt]sub myMember {
my($errmsg1) = shift;
print "Content-type: text/html\n\n";
print "<HTML><HEAD><TITLE>Title</TITLE>\n";
print "</HEAD>\n<BODY>
print "<CENTER><FONT SIZE=+2>Some text and other lines</FONT></FONT></CENTER>\n";
$footer = '$footerpath/footer.txt';
open(FTR,"<$footer"

or die "Failed to open footer, $!\n";
while (<FTR>) { print; }
close IPF;
print "</BODY></HTML>\n";
exit;
}[/tt]
So before I pressed this "Submit Post" button to say it didn't work, I played around with it a bit more. I tried several things but none worked. Then I moved the included file into the same directory as the script, which is not where I want really it, but with it there, it works perfectly! I know I had the path right, but for some reason the script didn't like it. So with this, it works and I will deal with the path issue later. Thanks a bundle!
[tt]sub myMember {
my($errmsg1) = shift;
print "Content-type: text/html\n\n";
print "<HTML><HEAD><TITLE>Title</TITLE>\n";
print "</HEAD>\n<BODY>
print "<CENTER><FONT SIZE=+2>Some text and other lines</FONT></FONT></CENTER>\n";
$footer = 'footer.txt';
open(FTR,"<$footer"

or die "Failed to open footer, $!\n";
while (<FTR>) { print; }
close IPF;
print "</BODY></HTML>\n";
exit;
}[/tt]
Don
don@ctagroup.org
Experienced in HTML, Perl, VBScript, PWS, IIS and Apache. Run OS/2 Warp 4, BeOS v5 and Windows NT (only when I have to!)