#!/usr/bin/perl $command='perl -v'; $title = "Perl Version"; print "Content-type: text/html\n\n"; print "$title\n\n\n"; ## START HTML content print "

$title

\n"; print "

"; print (exec $command); ## END HTML CONTENT print "\n\n";