in reply to Short Circuit Operator and Hash Assignment

There you have it. Precedence. Seems a lot less interesting now. I see that the statement is assigning the array length to $idx{$val}. That works actually since the only purpose of the assignment is to define the key in the hash. Kind of an unnecessary evaluation though. Oh well, nothing like getting caught with your parenthesis down.

Thanks for the input.

  • Comment on Re: Short Circuit Operator and Hash Assignment