in reply to Re^12: Why? (each...)
in thread Why? (each...)

Using curly braces when parens were supposed to be used is right there, in the OP!! Hey, maybe that could be the context...? Why is that so hard to grasp? No matter. I think I finally understand why you and BrowserUK tangle from time to time! Well, I have been discussing this in a certain context the entire time and as best I can tell, you have not made an effort to grasp that. So, have a good weekend.

Elda Taluta; Sarks Sark; Ark Arks

Replies are listed 'Best First'.
Re^14: Why? (each...)
by ikegami (Patriarch) on May 14, 2011 at 03:32 UTC

    You said that parens when assigning to a hash indicates a list and not a hash reference. In that very context, I showed that's wrong. If anyone followed your advice, and used %hash instead of $hash, their code would be buggy.

      The context is %hash, not $hash. The mistake in the OP was using {} when he should have used ().

      Elda Taluta; Sarks Sark; Ark Arks

        The context is actually "I still am fuzzy about the difference between “square brackets,” “braces,” and “parentheses.”".

        You said parens indicate a list, so that would mean %hash should be used.

        sub g { return { ... } } sub h { return { ... } } my %hash = (f ? g : h);

        That's wrong wrong wrong.