How is knowing that parens are used to override precedence helpful to someone that has trouble remembering whether to use %hash=(a=>1,b=>2) vs. %hash={a=>1,b=>2}?!?
Straw man. The answer I gave to that is "One never uses {} or [] to initialise a hash or array"! I didn't mention parens at all in describing how to initialise a hash. After all, they've got nothing to do with it.
I would mention them in describing how to build a list, though, because they are often needed around list literals.
If I gave you "%hash=(" and asked you what you would normally expect to follow it what would your answer be? Something like "a=>1,b=>2)"??
No. It's definitely a possibility, but I'd often be wrong if I would expect that.
In reply to Re^26: Why? (each...)
by ikegami
in thread Why? (each...)
by locked_user sundialsvc4
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |