in reply to Problem regarding storing the values in Hash.
It's not clear to me from your problem description that this is correct, but I'll submit it as a "talking point".my %hash; foreach my $i (0 .. $#num) { my $key = $num[$i]; my $value = $address[$i]; $hash{$key} = $value; } print "$_ => $hash{$_}\n" for keys %hash;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Problem regarding storing the values in Hash.
by jdalbec (Deacon) on Feb 19, 2005 at 15:59 UTC |