Mega Code Archive

 
Categories / Perl / System Functions
 

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>";