in reply to Re^7: How to return a two dimensional array from a function in Perl?
in thread How to return a two dimensional array from a function in Perl?

If you're immune to it, great!

It's not a case of being immune. My response was a genuine case of what I immediately saw when I looked at the two alternatives. I'm aware of the uncomfortable precedence that afflicts the ternary operator, and spotted the deliberate error immediately.

But that's a consequence of having been bitten enough times by the precedence of ternary that I generally bracket the condition (regardless of whether it is a simple or compound condition), and often bracket the entire ternary also.

And therein underlies at least part of my point. Rules without reasons are worse than no rules at all. We learn my making our own mistakes. Advice can alert us to dangers, but blanket censor rarely works well.


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
"Too many [] have been sedated by an oppressive environment of political correctness and risk aversion."
  • Comment on Re^8: How to return a two dimensional array from a function in Perl?