in reply to Re^4: Creating HTML page
in thread Creating HTML page
#!/usr/bin/perl use strict; use warnings; my $outname = "/usr/anil/scripts/myhtml.html"; open HTML, '>', $outname or die "Couldn't create '$outname': $!"; print HTML "<html>\n"; print HTML "<head>\n"; print HTML "<title>My Home Page</title>"; print HTML "</head>\n"; print HTML "<body bgcolor = blue>\n"; print HTML " <p>Here we have an HTML page with a paragraph.</p> "; print HTML "</body>\n"; print HTML "</html>\n"; close (HTML);
|
|---|