in reply to Re: Re: Trying to write a CGI script for this piece of HTML
in thread Trying to write a CGI script for this piece of HTML
This code opens 'dataform.html' for write and assigns filehandle to OUT.open(OUT, "> dataform.html") or die "Can't open file: $!";
Once file is opened you can write into it using filehandle OUT. You can use print to do it but you should pass it filehandle.
Note that there is no comma between OUT and message you are writting into the file.print OUT "Whatever you want";
Once you have finished writting the file you should close filehandle.
close OUT;
|
|---|