freebsd-dev/contrib/perl5/eg/cgi/nph-multipart.cgi

11 lines
263 B
Perl
Executable File

#!/usr/local/bin/perl
use CGI qw/:push -nph/;
$| = 1;
print multipart_init(-boundary=>'----------------here we go!');
while (1) {
print multipart_start(-type=>'text/plain'),
"The current time is ",scalar(localtime),"\n",
multipart_end;
sleep 1;
}