Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I want to extract only 'foo' hashmy %hash = ( 'foo' => [1,2,3], 'bar' =>[3,4,5]);
And also destructing %hash. Because I need to process $wanted and then return them back again in %hash.my $wanted = {'foo' => [1,2,3]};
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Hash Splice
by GrandFather (Saint) on Sep 21, 2007 at 08:10 UTC | |
by Anonymous Monk on Sep 21, 2007 at 09:23 UTC | |
by Corion (Patriarch) on Sep 21, 2007 at 09:27 UTC | |
by perlofwisdom (Pilgrim) on Sep 21, 2007 at 12:49 UTC | |
|
Re: Hash Splice
by erroneousBollock (Curate) on Sep 21, 2007 at 07:27 UTC | |
|
Re: Hash Splice
by graff (Chancellor) on Sep 22, 2007 at 02:18 UTC | |
by osirisgothra (Initiate) on Dec 06, 2014 at 18:34 UTC | |
|
Re: Hash Splice
by perlfan (Parson) on Sep 21, 2007 at 13:27 UTC |