in reply to
Hash create
One line and a half:
my %h; @h{@keys} = @values;
[download]
Comment on
Re: Hash create
Download
Code
Replies are listed 'Best First'.
Re^2: Hash create
by
ysth
(Canon)
on Jul 04, 2005 at 22:30 UTC
@$_{@keys} = @values for \my %h;
:)
[reply]
[d/l]
In Section
Seekers of Perl Wisdom