Cross Reference: nph-clock.cgi
xref
: /
osnet-11
/
usr
/
src
/
cmd
/
perl
/
5.8.4
/
distrib
/
lib
/
CGI
/
examples
/
nph-clock.cgi
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
#!/
usr
/
local
/
bin
/
perl
-w
use
CGI
::
Push
qw
(:
standard
:
html3
)
;
do_push
(-
next_page
=>\&
draw_time
,-
delay
=>
1
)
;
sub
draw_time
{
my
$time
=
localtime
()
;
return
start_html
(
'Tick Tock'
)
,
div
({-
align
=>
CENTER
},
h1
(
'Virtual Clock'
)
,
h2
(
$time
)
)
,
hr
,
a
({-
href
=>
'
index.html
'
},
'More examples'
)
,
end_html
()
;
}