tomishere has asked for the wisdom of the Perl Monks concerning the following question:
my @array = qw(var1 var2 var3); foreach my $element (@array){ #- I want to create my %var1, my %var2, my %var3 #- Is it possible? }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Can I create hash dynamically by looping through an array? The hash name should be the array element
by choroba (Cardinal) on Jan 25, 2013 at 12:51 UTC | |
Re: Can I create hash dynamically by looping through an array? The hash name should be the array element
by AnomalousMonk (Archbishop) on Jan 25, 2013 at 13:31 UTC | |
Re: Can I create hash dynamically by looping through an array? The hash name should be the array element
by toolic (Bishop) on Jan 25, 2013 at 13:16 UTC | |
Re: Can I create hash dynamically by looping through an array? The hash name should be the array element
by Anonymous Monk on Jan 25, 2013 at 12:50 UTC | |
by punch_card_don (Curate) on Jan 25, 2013 at 14:19 UTC |
Back to
Seekers of Perl Wisdom