in reply to Re: re-initialize the hash
in thread re-initialize the hash
use strict; use warnings; use Data::Dumper; my @array=(0,0,0); my %hash=('a'=>1 , 'b' =>2 , 'c'=>3,); my @values=keys%hash; @hash{@values}=@array; print Dumper \%hash;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: re-initialize the hash
by jethro (Monsignor) on Apr 01, 2010 at 08:56 UTC | |
by cdarke (Prior) on Apr 01, 2010 at 09:19 UTC | |
by vennila (Novice) on Apr 01, 2010 at 10:09 UTC |