use CGI; my $cgi = new CGI; my $time = time; my $ticks = Win32::GetTickCount; my $cookie_data = join ':','plex_time',$time,'plex_ticks',$ticks; my $content_type = 'text/html'; my $cookie = $cgi->cookie(-name=>'timing_data', -value=>"$cookie_data", ); print $cgi->header(-cookie=>$cookie); my $script = $cgi->param('script'); print < EOF