A perl program to display a digital clock which displays the current time of the server

By | November 5, 2011

prog.cgi

 

#!/usr/bin/perl
print “content-type:text/html\n\n”;
use CGI”:standard”;
my($s,$m,$h)=localtime(time);
print “The current time is : “;
print “$h:$m:$s “; 

 

 

Output:

The current Time is

23 : 19: 30





Author: Ravi Bandakkanavar

A Techie, Blogger, Web Designer, Programmer by passion who aspires to learn new Technologies every day. It has been 6 years since I have been publishing articles and enjoying every bit of it. I want to share knowledge and build a great community with people like you.

Did it help? Comment here..