Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I know the index of the array i.e. 1 for$VAR2 = { 'CSTRING' => 'public', 'SPECIFIC' => '1', 'GENERIC' => '6', 'SSERVER' => 'testmachine', 'DATE' => 'Tue Feb 25 10:13:43 2003', 'OID' => '1.2.3.4.5', 'DEVICE' => '123.124.125.126', 'TRAPS' => { 'TRAP_LIST' => [ { 'TYPE' => 4, 'DATA' => 'foo', 'VARBIND' => '1.2.3.4.5' }, { 'TYPE' => 4, 'DATA' => 'bar', 'VARBIND' => '1.2.3.4.5' } ] }, 'PORT' => '161' };
Is there an easy way to remove elements from the hash of arrays?{ 'TYPE' => 4, 'DATA' => 'bar', 'VARBIND' => '1.2.3.4.5' }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: hash array removal ?
by broquaint (Abbot) on Feb 25, 2003 at 15:41 UTC | |
|
Re: hash array removal ?
by jasonk (Parson) on Feb 25, 2003 at 15:40 UTC | |
|
Re: hash array removal ?
by Zaxo (Archbishop) on Feb 25, 2003 at 15:46 UTC | |
by meetraz (Hermit) on Feb 25, 2003 at 15:58 UTC | |
by chromatic (Archbishop) on Feb 25, 2003 at 17:04 UTC | |
by meetraz (Hermit) on Feb 25, 2003 at 20:47 UTC | |
by Anonymous Monk on Feb 25, 2003 at 16:02 UTC | |
|
Re: hash array removal ?
by hgolan (Initiate) on Feb 25, 2003 at 16:41 UTC | |
by Anonymous Monk on Feb 25, 2003 at 19:00 UTC | |
by Anonymous Monk on Feb 25, 2003 at 21:06 UTC |