Jack wrote:

Hello,

In my perl CGI script, I'm trying to extract the PID
that corresponds to it.


$$ contains the PID that corresponds to your script (perldoc perlvar)


How do I do this?  I'm also trying to extract the
timestamp.


The built-in perl function localtime will interest you perldoc -f localtime If you are looking to format your timestamp, strftime will interest you perldoc POSIX use POSIX qw(strftime);


How come it's not possible to do something like:

print "<HTML><BODY>";
print `time`;
print "</BODY></HTML>";


Don't know a lot about CGI, sorry :-)



Any help would be greatly appreciated,


Jack




--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to