Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks,
$string="1:one;2:two;3:three"; %hash;
I want hash like 1=>one, 2=>two .. using map in single line.
Kindly help on please
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Create a hash by spliting string
by Utilitarian (Vicar) on Feb 09, 2011 at 14:25 UTC | |
by sundialsvc4 (Abbot) on Feb 10, 2011 at 01:36 UTC | |
by Utilitarian (Vicar) on Feb 10, 2011 at 08:34 UTC | |
Re: Create a hash by spliting string
by CountZero (Bishop) on Feb 09, 2011 at 15:03 UTC | |
by arivu198314 (Sexton) on Feb 10, 2011 at 06:35 UTC | |
by davido (Cardinal) on Feb 10, 2011 at 07:59 UTC | |
by Argel (Prior) on Feb 11, 2011 at 02:54 UTC | |
Re: Create a hash by spliting string
by Anonymous Monk on Feb 09, 2011 at 13:59 UTC |
Back to
Seekers of Perl Wisdom