programming-examples/perl/CGI/Generating HTML Programmatically.pl
2019-11-15 12:59:38 +01:00

12 lines
343 B
Perl

#!/usr/bin/perl
use strict;
use warnings;
use CGI;
my $cgi=new CGI;
print $cgi->header(),$cgi->start_html("Simple Examples");
print $cgi->center("Centered Text");
print $cgi->p("A Paragraph");
print $cgi->br();
print $cgi->b("Bold"),$cgi->i("Italic");
print $cgi->p("A Paragraph",$cgi->sup("A superscript"));
print $cgi->end_html();