in reply to another 'array to hash' question
#!/usr/bin/perl -w use strict; use Data::Dumper; my @keys = qw( fn ln age ); my @values = qw( Joe McCarty 89 ); my %hash; @hash{@keys} = @values; print Dumper \%hash;
- Tom
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: another 'array to hash' question
by punkish (Priest) on Dec 10, 2003 at 15:07 UTC |