Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hi all, I have a string like this.
I would like to get this converted intomy $text = "a.b.c.d";
my $hash = { a => { b => { c => d } } };
Could any one please help me with some efficient way to achieve this..
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: converting a text into a hash datastructure
by moritz (Cardinal) on Aug 03, 2011 at 09:44 UTC | |
Re: converting a text into a hash datastructure
by jethro (Monsignor) on Aug 03, 2011 at 09:47 UTC | |
Re: converting a text into a hash datastructure
by bart (Canon) on Aug 03, 2011 at 10:28 UTC | |
by Anonymous Monk on Aug 03, 2011 at 11:04 UTC |
Back to
Seekers of Perl Wisdom