dda has asked for the wisdom of the Perl Monks concerning the following question:
Dear Monks, please take a look at this code:
Is it possible to automate the 'conversion' of @keys array to a set of hash keys? Suppose, I have an array and corresponding data, and I neeed to create a composite hash key from the array. Please advise.my $href; my @keys = qw (1,2,3); $href->{1}->{2}->{3} = 'somedata'; # keys hardcoded
--dda
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Populating hash keys
by liz (Monsignor) on Oct 03, 2003 at 13:24 UTC | |
Re: Populating hash keys
by broquaint (Abbot) on Oct 03, 2003 at 13:29 UTC | |
by dda (Friar) on Oct 03, 2003 at 13:37 UTC | |
by broquaint (Abbot) on Oct 03, 2003 at 14:28 UTC | |
Re: Populating hash keys
by zby (Vicar) on Oct 03, 2003 at 13:24 UTC | |
by dda (Friar) on Oct 03, 2003 at 13:32 UTC | |
Re: Populating hash keys
by simonm (Vicar) on Oct 03, 2003 at 15:48 UTC |
Back to
Seekers of Perl Wisdom