hello all,
once embperl finishes processing an embperl page, it calls the CLEANUP
handler if it exists. That I know and succesfully tested.
But I'm using a few custom modules, and I'd like them *all* to receive
a CLEANUP call. I've been able to call CLEANUP in one module, by
exporting it, but I need that each and every imported module gets its
call. Without writing a CLEANUP handler per page, that is.
Is there any sound strategy, besides writing a module of my own to
catch the global CLEANUP call and broadcast it to my modules?
martin
once embperl finishes processing an embperl page, it calls the CLEANUP
handler if it exists. That I know and succesfully tested.
But I'm using a few custom modules, and I'd like them *all* to receive
a CLEANUP call. I've been able to call CLEANUP in one module, by
exporting it, but I need that each and every imported module gets its
call. Without writing a CLEANUP handler per page, that is.
Is there any sound strategy, besides writing a module of my own to
catch the global CLEANUP call and broadcast it to my modules?
martin