monaghan has asked for the wisdom of the Perl Monks concerning the following question:
I want to transform this into something that would look like:File Number => [ FirstNum => 1234, NextNum => 5678, ID => ID1, File => text.txt ]
So basically here I wanted to shift the hash so that the first value of the original is now the main value. Hope this makes sense.1234 => [ NextNum => 5678, ID => ID1, File => text.txt ]
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Modifying order of a hash
by pjotrik (Friar) on Sep 25, 2008 at 19:22 UTC | |
|
Re: Modifying order of a hash
by jethro (Monsignor) on Sep 25, 2008 at 19:38 UTC | |
by monaghan (Novice) on Sep 25, 2008 at 21:01 UTC | |
by jethro (Monsignor) on Sep 25, 2008 at 21:55 UTC | |
by monaghan (Novice) on Sep 25, 2008 at 23:00 UTC | |
by jethro (Monsignor) on Sep 25, 2008 at 23:37 UTC | |
| |
|
Re: Modifying order of a hash
by karavelov (Monk) on Sep 25, 2008 at 19:41 UTC | |
|
Re: Modifying order of a hash
by apl (Monsignor) on Sep 25, 2008 at 19:26 UTC | |
|
Re: Modifying order of a hash
by monaghan (Novice) on Sep 25, 2008 at 23:29 UTC | |
by jethro (Monsignor) on Sep 26, 2008 at 01:43 UTC | |
by monaghan (Novice) on Sep 26, 2008 at 16:12 UTC | |
by karavelov (Monk) on Sep 26, 2008 at 17:22 UTC | |
by monaghan (Novice) on Sep 30, 2008 at 21:58 UTC |