in reply to Re^21: Why? (each...)
in thread Why? (each...)
I tried to present a simplified answer that I thought would help the OP in the specific situation that came up in the original question.
Perhaps, but the answer you did present was actually harmful.
Perhaps you meant to say that "parens are needed around the list"?
Or to put it differently, how does mentioning using parens to override precedence help the OP?
If you want to open discussions as to how to improve my answer, by all means do so.
But we do that so we can assign a list of key/value pairs to the hash.
Not true at all. Parens are only used in assigning lists of key/value pairs to hashes in a small percentage of situations.
As a side note, in the context being discussed the parens do indicate a list.
Just like my car doesn't indicate a road, those parens don't indicate a list.
Take away the parens, and the list is still there. Replace the list with something else, and you don't have to remove the parens. The parens are in no way related to any list, so they can't possibly indicate a list in «my %hash = ( x=>1, y=>2, z=>3 );».
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^23: Why? (each...)
by jffry (Hermit) on May 18, 2011 at 19:28 UTC | |
by ikegami (Patriarch) on May 18, 2011 at 20:53 UTC | |
by jffry (Hermit) on May 19, 2011 at 15:02 UTC | |
|
Re^23: Why? (each...)
by Argel (Prior) on May 19, 2011 at 15:13 UTC | |
by ikegami (Patriarch) on May 19, 2011 at 15:46 UTC | |
by Argel (Prior) on May 19, 2011 at 19:27 UTC | |
by ikegami (Patriarch) on May 19, 2011 at 21:31 UTC | |
by Argel (Prior) on May 19, 2011 at 23:57 UTC | |
|