Beefy Boxes and Bandwidth Generously Provided by pair Networks
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??


in reply to Re: Care to explain ++@h{@a,@b,@c,@d}; ?
in thread Find unique elements from multiple arrays

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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://253788]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2024-04-19 03:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found