![]() |
|
Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re^4: Strange Regex Behaviorby BrowserUk (Patriarch) |
on Dec 06, 2011 at 07:25 UTC ( [id://941968]=note: print w/replies, xml ) | Need Help?? |
Hm. I believe the fact that the entire ternary expression is wrapped in parens means that the contents of those parens must be evaluated before anything outside them per perlop: A TERM has the highest precedence in Perl. They include variables, quote and quote-like operators, any expression in parentheses, and any function whose arguments are parenthesized. I also believe that as the two ternary expressions are part of a (4-term) comma separated list, those four terms should be evaluated in strictly left to right order per perlop: "In list context, it's just the list argument separator, and inserts both its arguments into the list. These arguments are also evaluated from left to right.". With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
In Section
Seekers of Perl Wisdom
|
|