Re: Delete all hash entries except for a specific list

2004-09-21 Thread John W. Krahn
Bob Showalter wrote: Consider, my %hash = ( foo => 1, bar => 2, baz => 3, qux => 4, ); I would like to remove all the entries in the hash except for 'bar' and 'qux'. (Actual hash has other entries which can vary at runtime. I know that I only want to keep 'bar' and 'qu

Re: Delete all hash entries except for a specific list

2004-09-21 Thread Jeff 'japhy' Pinyan
On Sep 21, Errin Larsen said: >On Tue, 21 Sep 2004 14:58:43 -0400 (EDT), Jeff 'japhy' Pinyan ><[EMAIL PROTECTED]> wrote: >> On Sep 21, Bob Showalter said: >> >> > my %hash = ( >> > foo => 1, >> > bar => 2, >> > baz => 3, >> > qux => 4, >> > ); >> > >> >I would like to remov

Re: Delete all hash entries except for a specific list

2004-09-21 Thread Errin Larsen
On Tue, 21 Sep 2004 14:58:43 -0400 (EDT), Jeff 'japhy' Pinyan <[EMAIL PROTECTED]> wrote: > On Sep 21, Bob Showalter said: > > > my %hash = ( > > foo => 1, > > bar => 2, > > baz => 3, > > qux => 4, > > ); > > > >I would like to remove all the entries in the hash except for '

Re: Delete all hash entries except for a specific list

2004-09-21 Thread Jeff 'japhy' Pinyan
On Sep 21, Bob Showalter said: > my %hash = ( > foo => 1, > bar => 2, > baz => 3, > qux => 4, > ); > >I would like to remove all the entries in the hash except for 'bar' and >'qux'. (Actual hash has other entries which can vary at runtime. I know that >I only want to keep '

Re: Delete all hash entries except for a specific list

2004-09-21 Thread Gunnar Hjalmarsson
Bob Showalter wrote: Consider, my %hash = ( foo => 1, bar => 2, baz => 3, qux => 4, ); I would like to remove all the entries in the hash except for 'bar' and 'qux'. (Actual hash has other entries which can vary at runtime. I know that I only want to keep 'bar' and 'qu