rsennat has asked for the wisdom of the Perl Monks concerning the following question:
From this structure, how do i delete the key/value pair for "tc2" or "tc1"?%hoh = { 'comp' => { 'cmd' => { 'tc1' => { 'platform_type' => 'all', 'testsuite_type' => 'all +', 'ccc_id' => '2', 'view' => 'private' }, 'tc2' => { 'platform_type' => 'all', 'testsuite_type' => 'all +', 'ccc_id' => '2', 'view' => 'private' } } } };
thanks in advancedelete $hoh{'comp'}{'cmd'}{'tc2'};
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: delete from complex hash
by Aristotle (Chancellor) on Nov 16, 2005 at 10:59 UTC |