Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
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 ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://413927]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (6)
As of 2024-04-24 03:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found