programming-examples/perl/CGI/Pretty print HTML code.pl
2019-11-15 12:59:38 +01:00

15 lines
356 B
Perl

#!/usr/bin/perl
use warnings;
use strict;
use CGI::Pretty;
my $cgi=new CGI::Pretty;
print $cgi->header(),
$cgi->start_html("Environment Dumper"),
$cgi->table({-border=>1},
$cgi->Tr($cgi->th(["Parameter","Value"])),
map {
$cgi->Tr($cgi->td([$_,$ENV{$_}]))
} sort keys %ENV
),
$cgi->end_html();