Perl-Sensitive Sunglasses | |
PerlMonks |
Re: Re: Care to explain ++@h{@a,@b,@c,@d}; ?by diotalevi (Canon) |
on Apr 28, 2003 at 18:51 UTC ( [id://253788]=note: print w/replies, xml ) | Need Help?? |
And here I just thought that BrowserUK had made a mistake by applying the scalar context to the hash slice. I would have been quite happy if it had been been written as @h{@a,@b,@c,@d} = () since that is clear on maintaining the list/list context. It also assigns "nothing" to each hash which is correct. So I'd use it in the amended form for production code.
In Section
Seekers of Perl Wisdom
|
|