Remi Fasol wrote:
> 
> hello.
> 
> i am using Tie::IxHash within my Apache::ASP page and
> have noticed that the size of my processes are
> balooning in size (as told by 'top').
> 
> do i need to explicitly untie and undef my tie
> variables? or are they automatically freed when my
> page exits?
> 

If you don't scope your variables in your scripts
with "my" then yes, you need to explicitly undef
them.  If you are using globals, I would recommend
setting them up in Script_OnStart and undefing them
in Script_OnEnd, or with $Server->RegisterCleanup

You can help yourself be consistent with scoping
by turning on strict for all scripts automatically with
the UseStrict setting.

Apache::ASP does no explicit cleanup of the Global 
package namespace in which all the scripts are run,
so all those generic global/scoping issues related to 
modperl applications relate to Apache::ASP as well.

-- Joshua

_________________________________________________________________
Joshua Chamas                           Chamas Enterprises Inc.
NodeWorks >> free web link monitoring   Huntington Beach, CA  USA 
http://www.nodeworks.com                1-714-625-4051

Reply via email to