CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Perl Programming Help: Beginner:
Printing to html



Oct 30, 2000, 10:11 PM

Post #1 of 1 (313 views)
Printing to html Can't Post

In the current setup this subroutine will at present add new text before the first line at the top of a html file designated as $list. I want the information as its parsed from a form to be added to the last line of the html file as new information is added to the file.
Heres the script;
open (LISTFILE,"<$list") | | &noLIST;

open (LISTFILE,">$list") | | die "Can't Open $output: $!\n";
$fileSIZE = $SIZE;

for ($i=0;$i<=$fileSIZE;$i++) {
print LISTFILE $LINES[$i];

I'm sure there's an easy way to have the script write to the html file in the way I want it to. Can anyone out there assist me please. Thanks in advance.

[This message has been edited by btcmai (edited 11-01-2000).]


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives