in reply to Re: Deallocating HASH pointer
in thread Deallocating HASH pointer

What about if the '$tree' is a static variable?
BEGIN { $tree = {}; sub createTree { # we create big tree ... } sub deleteTree { $tree = undef; # or $tree = {}; } } createTree(); deleteTree();
Is this also apply?