vinoth.ree has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks
I need to read a file which contains the hash reference
#------------------- #Conf File #-------------------- { "one" => { 1 => "one", 2 => "two", 3 => { "inner" => "value", "inner" => "value" } }, "2" => { 1 => "one", 2 => "two", }, "two" => { 4 => "test", 3 => "test1", } }
I read this file using the do(), but I am not getting the same order of file content as it is, I should get in Order how to do it?
I am getting like below
Any Idea Please.Thanks In Advance.$VAR1 = { 'one' => { '1' => 'one', '3' => { 'inner' => 'value' }, '2' => 'two' }, 'two' => { '4' => 'test', '3' => 'test1' }, '2' => { '1' => 'one', '2' => 'two' } };
Update: Updated the question.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Read Hash reference from File
by Anonymous Monk on Nov 08, 2012 at 10:13 UTC | |
Re: Read Hash reference from File
by jethro (Monsignor) on Nov 08, 2012 at 11:34 UTC | |
Re: Read Hash reference from File
by nagalenoj (Friar) on Nov 08, 2012 at 11:50 UTC |
Back to
Seekers of Perl Wisdom