in reply to Re^2: Unexpected parsing
in thread Unexpected parsing
I wonder if it might be appropriate for the precedence table to mention this unexpected (by me) interaction?No, I don't think so. The ':' isn't an operator, so it has nothing to do with precedence. It doesn't belong in a precedence table. Determining whether something is an operator (or part of an operator) or not isn't dealt with with the operator precedence table.
Since the word ‘attribute’ does not occur in perlop or perlsyn, and since no other punctuation mark requires a visit to perlfunc to figure out how it parsesBut you only find something about attributes in perlfunc because my was specially added to perlfunc; my isn't a function. The details are in perlsub, where you would also go for punctuation as prototypes and some cases of parenthesis.
Is there any unified list of officially undefined things?Not that I know of. But by all means, feel free to write up a list and submit is as a patch. Writing documentation doesn't require any coding language, which means most people can do it.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Unexpected parsing
by ikegami (Patriarch) on Dec 16, 2009 at 17:05 UTC | |
|
Re^4: Unexpected parsing
by JadeNB (Chaplain) on Dec 16, 2009 at 15:47 UTC | |
by JavaFan (Canon) on Dec 16, 2009 at 16:04 UTC | |
by ikegami (Patriarch) on Dec 16, 2009 at 17:08 UTC | |
by ikegami (Patriarch) on Dec 16, 2009 at 17:20 UTC |