Perl script to display digital clock

By | November 5, 2015

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.

Suggested read for you:

Did it help? Comment here..