![]() |
|
No such thing as a small change | |
PerlMonks |
Array to hash refsby Anonymous Monk |
on Aug 13, 2002 at 15:50 UTC ( #189833=perlquestion: print w/replies, xml ) | Need Help?? |
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.
Back to
Seekers of Perl Wisdom
|
|