From: Brian Candler Date: 2003-02-20T01:27:06+09:00 Subject: Re: speedycgi/pperl equivalent? On Wed, Feb 19, 2003 at 03:07:20PM +0000, Brian Candler wrote: > Interesting. If the embedded interpreter restarts the CGI script for each > invocation, does that mean it loses global variables [oops, found the FAQ!] How much of perl's state is kept when speedy starts another request? Do globals keep their values? Are destructors run after the request? Globals keep their values. Nothing is destroyed after the request. STDIN/STDOUT/STDERR are closed -- other files are not. %ENV and @ARGV are the only globals changed between requests. Not sure of the advantages over mod_perl though; you end up with a separate pool of perl processes, in addition to Apache's pool of httpd servers. I suppose if you use the C wrapper to handle CGI requests it means you don't have to modify your web server (but then if you use mod_speedycgi then you lose that benefit!) Regards, Brian.