programming-examples/perl/SystemFunction/Displays the current date and time in a Web browser.pl
2019-11-15 12:59:38 +01:00

8 lines
206 B
Perl

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