in reply to Modifying order of a hash
into this:my %hash = ( '103496-1' => [{ 'CLVD' => '5678', 'COMP' => '1234', 'FD +' => '0010', 'Files' => [{'File' => 'text.txt', 'hash' => 'a538346ad3 +485'},{'File' => 'text2.txt', 'hash' => '237d97892376a'}] }] );
Basically the only difference is that I don't want to remove the front value and simply shift 1234 outside of the original array. Any thoughts or suggestions?my %newhash = ( '103496-1' => [{ 1234 => {'CLVD' => '5678', 'FD' => '001 +0', 'Files' => [{'File' => 'text.txt', 'hash' => 'a538346ad3485'},{'F +ile' => 'text2.txt', 'hash' => '237d97892376a'}] }] );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Modifying order of a hash
by jethro (Monsignor) on Sep 26, 2008 at 01:43 UTC | |
by monaghan (Novice) on Sep 26, 2008 at 16:12 UTC | |
|
Re^2: Modifying order of a hash
by karavelov (Monk) on Sep 26, 2008 at 17:22 UTC | |
by monaghan (Novice) on Sep 30, 2008 at 21:58 UTC |