in reply to Re: Deallocating HASH pointerin thread Deallocating HASH pointer
BEGIN { $tree = {}; sub createTree { # we create big tree ... } sub deleteTree { $tree = undef; # or $tree = {}; } } createTree(); deleteTree(); [download]