Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^3: Do I need to free allocated space in an END sub?

by shay (Beadle)
on Dec 10, 2004 at 18:22 UTC ( #413927=note: print w/replies, xml ) Need Help??


in reply to Re^2: Do I need to free allocated space in an END sub?
in thread Do I need to free allocated space in an END sub?

Did you mis-read? I have a BOOT: section (an XS keyword), not a BEGIN sub.

END is called for each request if the module was loaded by the Apache child process. If it is preloaded by the server process (e.g. PerlModule line in the httpd.conf file) then the END is only run once when the server shuts down. This is fine, except that it isn't possible for a source filter module, which, as I said, is necessarily loaded by the child when loading the script.

Unless, of course, you have the server pre-load the script (?)

Anyway, I wanted a more "natural" solution that doesn't require the user to have loaded the script/module at some particular time.

  • Comment on Re^3: Do I need to free allocated space in an END sub?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://413927]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2020-08-04 03:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which rocket would you take to Mars?










    Results (31 votes). Check out past polls.

    Notices?