How do I open a .txt or HTML file that contains HTML and print the entire page to the browser? Here is a coded visual example of what i want to do:
Code:
#!/usr/bin/perl
print "Content-type: text/html\n\n";
open (IN, "/the/path/head.txt");
while (<IN>)
{
print every line of the .txt file
}
close (IN);
#A bunch of code that is filled in after the html#
open (IN, "/the/path/foot.txt");
while (<IN>)
{
print every line of the .txt file
}
close (IN);