[ Create a new account ]
But I'm more likely to use the reverse:
my @values = @hash{@keys};
undef @hash{@keys};
Get More Comments
Reply
Althought that glosses over what happens... (Score:2)
Yep (Score:2)
But I'm more likely to use the reverse:
J. David works really hard, has a passion for writing good software, and knows many of the world's best Perl programmers
You can fabricate values from the keys (Score:1)
This is a neat way to turn an array into hash keys.
Re: (Score:1)
undef @hash{@keys};