Displays the current date and time in a Web browser.
use warnings;
use strict;
print "Content-type: text/html\n\n";
print "<html><head><title>Current date and time</title>";
print "</head>\n<body>";
print scalar( localtime() );
print "</body></html>";
Related examples in the same category