Re: [Speedycgi-users] Where to go for examples...
Brought to you by:
samh
|
From: Sam H. <sa...@da...> - 2002-06-15 01:53:45
|
Most code can be written without using those methods or any other methods in the CGI::SpeedyCGI module. In SpeedyCGI your perl code is run several times before finally being removed from memory. In normal perl, you just run once, and then the code is removed from memory. Both of these methods are similar to using "END" statements. If you register a "cleanup" function, it's executed at the end of each run of your perl code. A shutdown_handler is run right before your perl code is removed altogether (ie after all the runs of your perl code are done, right before your perl code is removed from memory). > I want to implement CGI::SpeedyCGI, but have some questions on your > methods, i.e., > > 1. register_cleanup($function_ref) > 2. add_shutdown_handler($function_ref) > 3. set_shutdown_handler($function_ref) > > Where can I go to learn about how and why I need to cleanup/shutdown, etc., > in addition to all of the other techniques I should be using to keep things > clean? I want to make sure that I am coding correctly before getting to > far into it! > > Thanks in advance. > > Gregory |