Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^2: Operator Associative in Perl

by ikegami (Pope)
on Jun 03, 2009 at 15:24 UTC ( #768042=note: print w/replies, xml ) Need Help??


in reply to Re: Operator Associative in Perl
in thread Operator Associative in Perl

Perl doesn't define when the variable is incremented or decremented. [...] Perl will not guarantee what the result of the above statements is.

While operand evaluation order isn't documented, the order is the same in all versions on all platforms (intentionally), and changing it would break a lot of code.

perl always evaluates operands from left to right for left-associative operators and exponentiation (**), and from right to left for assignments operators.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://768042]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (6)
As of 2020-02-18 22:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What numbers are you going to focus on primarily in 2020?










    Results (80 votes). Check out past polls.

    Notices?