in reply to Clearing a hash/array

Personally I use
$#array = -1;
This clears an array nicely and makes sure nothing is hanging around in the $array[0] cell

One thing that is a bit confusing though is that I'm not sure what you expected an array to return after its been cleared. Were you expecting the keys to remain? Nice trick that would be, I guess. If you are then what you want to do is walk the array and set each cell to "". But I'm not sure that's what you are asking.

Glenn H.
webadept.net