For the reasons above, don't agree about your position.
But I submit that the example you mention refers to
the intelligent use of
idiom and not the general
case that is conjured up by your suggestion that Perl
programmers should be considered illiterate unless
they can perfectly apply the precedence tables in all
situations, and that they should always want to do
so to the fullest possible extent (a canard).
Perl is all about using (private) idiom to match personal
style and increase efficiency. So in that sense I agree,
example 3 seems easier to understand (to me). I think
I've probably used all three examples in similar situations
depending on how I thought about the problem, which is the point.
But the other two examples
would be fine too if separated by whitespace/linefeeds, depending
on temperament. This is a question not of how well someone
knows precedence but about personal style. I am not sure
that your personal style depends more on precedence
rules than some other people here.
That said, I lost faith in the infallibility of precedence
rules when I heard they were going to be "redefined".
Maybe there is a fine (subjective) line between common
knowledge and the esoteric in this case but as you can see
from the comments everyone comes at Perl from a different
angle and often there are good reasons for not exploiting
that knowledge.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.