in reply to Garbage Collection on Hash delete
Assignment, %hash = (); is quicker and neater. It may be neater yet to make the hash lexical and just let it go out of scope:
I generally use delete only when I know I want what remains of the hash later on.{ my %hash = ( foo => 'bar' ); # do stuff }
After Compline,
Zaxo
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Garbage Collection on Hash delete
by netoli (Initiate) on Jan 12, 2003 at 12:43 UTC |