source: for-distributions/trunk/bin/windows/perl/lib/CGI/eg/nph-clock.cgi@ 14489

Last change on this file since 14489 was 14489, checked in by oranfry, 17 years ago

upgrading to perl 5.8

File size: 359 bytes
RevLine 
[14489]1#!/usr/local/bin/perl -w
2
3use CGI::Push qw(:standard :html3);
4
5do_push(-next_page=>\&draw_time,-delay=>1);
6
7sub draw_time {
8 my $time = `/bin/date`;
9 return start_html('Tick Tock'),
10 div({-align=>CENTER},
11 h1('Virtual Clock'),
12 h2($time)
13 ),
14 hr,
15 a({-href=>'index.html'},'More examples'),
16 end_html();
17}
18
Note: See TracBrowser for help on using the repository browser.