in reply to Perl precedence details
I need 100% sure explanation ... without digging all the perldocs
That's going to be a problem, IIRC the knowledge on Perl's precedence is split up in a couple of places, the first that come to mind are of course perlop, the beginning of perlfunc, Prototypes in perlsub, with additional explanations in the Camel. Also you can fetch the prototypes of builtins via prototype, although AFAIK not all built-ins have prototypes because they are treated specially by Perl's parser.
a clear and unambiguous explanation (or algorythm)
Have you read On Parsing Perl, Perl Cannot Be Parsed: A Formal Proof, and the beginning of the PPI documentation? The following is pieced together from those links, also try running it through perl -MO=Deparse several times:
BEGIN { eval(time % 2 ? 'sub zany () {}' : 'sub zany {}') } # how to parse the following? does it die or not? zany / 1 ; # / ; die ;
Perhaps you could explain what you are trying to accomplish with this information?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Perl precedence details
by hurricup (Pilgrim) on Jun 20, 2015 at 13:42 UTC | |
by Anonymous Monk on Jun 20, 2015 at 14:43 UTC | |
by hurricup (Pilgrim) on Jun 20, 2015 at 15:38 UTC | |
by BrowserUk (Patriarch) on Jun 20, 2015 at 16:05 UTC | |
by hurricup (Pilgrim) on Jun 20, 2015 at 17:15 UTC | |
|