in reply to Declare and slice-initialize hash in one statement?

I believe credit is due to merlyn for this one:
@$_{@keys} = @values for \my %hash;

Jeff japhy Pinyan, P.L., P.M., P.O.D, X.S.: Perl, regex, and perl hacker
How can we ever be the sold short or the cheated, we who for every service have long ago been overpaid? ~~ Meister Eckhart

Replies are listed 'Best First'.
Re^2: Declare and slice-initialize hash in one statement?
by chester (Hermit) on Oct 27, 2005 at 17:25 UTC
    I never would've thought of that. Very nice. (Now I need to forget I ever saw it, lest I'm tempted to use it someday.)