Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
use CGI qw/:standard :shortcuts form/;
print header,
start_html,
form(
"What's the time?",
textfield( -name=>'time', -length=>6 ),
br,
submit( -name=>'Thanks!')
),
end_html;
sub currentTime {
my $obj = shift;
my ($seconds, $minutes, $hours, $day, $mon, $yr, $wday, $yday, $isdst)=localtime();
my $time=sprintf("%0.2d",$hours).":".sprintf("%0.2d",$minutes).":".sprintf("%0.2d", $seconds);
return $time;
}