in reply to Doubt on perl instances! Plz reply...
That's the reason people invented things like mod_perl and FastCGI, which can keep Perl interpreters in memory and reuse them. Using CGI the way you are is normal, and will not fill up memory (since the interpreters keep getting destroyed), but it is much slower than mod_perl and friends.
Regarding your "new CGI" question, you are assigning the instance to a lexically scoped ("my") variable, which means that the instance of CGI will be destroyed when that variable goes out of scope.
|
|---|