This will write to the end of a file but how do I write to the beginning of the file without losing the contents already in that file?
open HTML, ">>c:/web/root/index.html";print HTML "Content-Type: text/html\n\n";
print HTML "<html><head></head><body>";
print HTML "<h2>Written by Perl!</h2>";
print HTML "</body></html>";close HTML;
open HTML, ">>c:/web/root/index.html";print HTML "Content-Type: text/html\n\n";
print HTML "<html><head></head><body>";
print HTML "<h2>Written by Perl!</h2>";
print HTML "</body></html>";close HTML;