可能重复:
注册:Perl CGI 脚本自动更新新数据
perl CGI 脚本不断更新时间,而不是创建时间列表
#!C:/perl/bin/perl.exe
use warnings;
use strict;
use CGI;
local $| = 1;
my $cgi = new CGI;
my $string = localtime();
print $cgi->header();
print $cgi->start_html("Welcome");
print $cgi->h1("$string");
print $cgi->end_html();
print $cgi->header();
print $cgi->start_html("Welcome");
print $cgi->h1("$string");
print $cgi->end_html();