Re: Deleting entries in a Hash

2003-08-14 Thread Rob Dixon
Sachin Hegde wrote: > > How do I efficiently delete all the entries in a Hash of arrays. > suppose I have > %HOA = { one => [ "a","b","c"], > two => [ "x","y","z"], > }; > I want > %HOA = {}; Hi Sachin. Your mistake lies in the difference between a hash and a referen

Re: Deleting entries in a Hash

2003-08-06 Thread John W. Krahn
Sachin Hegde wrote: > > Hi all, Hello, > How do I efficiently delete all the entries in a Hash of arrays. > suppose I have > %HOA = { one => [ "a","b","c"], > two => [ "x","y","z"], > }; It looks like you don't have warnings enabled otherwise you would get this war