#!/usr/bin/perl 

$command='perl -v';
$title = "Perl Version";

print "Content-type: text/html\n\n";
print "<html><head><title>$title</title></head>\n<body>\n\n";

## START HTML content
print "<h1>$title</h1>\n";
print "<p>";
print (exec $command);
## END HTML CONTENT

print "\n\n</body></html>";
