Re: lvalue hash slice

Gaal Yahas <[email protected]>
Newsgroups gmane.comp.lang.perl.fun
Message-ID <[email protected]>
On Tue, Sep 30, 2003 at 08:12:54PM -0000, I wrote:
> Sadly, this doesn't work as an lvalue:
> 
>     @hash{ qw/aaa bbb ccc/ } = ($one, $two, $three);        # WRONG

And evidently it does! Oops! :)

Has this always worked? I coulda sworn I tried it in the past with no
luck...

Okay, score down for solution, score up for obfuscation...! :p

-- 
Gaal Yahas <[email protected]>
http://gaal.livejournal.com/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.