Think about Loose Coupling | |
PerlMonks |
Re: Answer: How do I empty out a hash?by liz (Monsignor) |
on Aug 16, 2003 at 15:58 UTC ( [id://284339]=note: print w/replies, xml ) | Need Help?? |
The quick way to clear a hash is
i.e. set the empty list as the hash. Even if the hash is tied, a properly implemented tieing module should implement both the DELETE and CLEAR functions, so it should work in that case as well. Liz
In Section
Seekers of Perl Wisdom
|
|