in reply to Hash and arrays
You mean like this?
holli, /regexed monk/
my @k = ("a", "b", "c"); my @v = (1, 2, 3); my %h = map { $k[$_] => $v[$_] } (0..$#k);
holli, /regexed monk/
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Hash and arrays
by thinker (Parson) on Aug 04, 2005 at 08:48 UTC |
In Section
Seekers of Perl Wisdom