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 reply to Re: Re: Care to explain ++@h{@a,@b,@c,@d}; ?
by diotalevi
in thread Find unique elements from multiple arrays
by Anonymous Monk
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |