Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hi monks,
I have a problem that I thought I could solve by myself, but after thinking about it for far too long, I have realised that I am not experienced (or perhaps clever) enough. I want to turn an array of unknown length, for example @arr = ("a", "b", "c"), into hash refs: $hash->{a}->{b}->{c} = 1. If anyone knows how to do this I would be most grateful.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Array to hash refs
by Abigail-II (Bishop) on Aug 13, 2002 at 16:01 UTC | |
by BrowserUk (Patriarch) on Aug 14, 2002 at 08:06 UTC | |
by aufrank (Pilgrim) on Aug 13, 2002 at 16:25 UTC | |
by Abigail-II (Bishop) on Aug 13, 2002 at 16:28 UTC | |
(jeffa) Re: Array to hash refs
by jeffa (Bishop) on Aug 13, 2002 at 16:06 UTC | |
by Abigail-II (Bishop) on Aug 14, 2002 at 09:18 UTC | |
Re: Array to hash refs
by nat0m (Novice) on Aug 14, 2002 at 08:49 UTC | |
by Anonymous Monk on Aug 14, 2002 at 11:27 UTC | |
Re: Array to hash refs
by Anonymous Monk on Aug 14, 2002 at 07:14 UTC | |
Re: Array to hash refs
by jackdied (Monk) on Aug 14, 2002 at 16:31 UTC | |
Re: Array to hash refs
by deMize (Monk) on Oct 11, 2012 at 14:47 UTC |
Back to
Seekers of Perl Wisdom