Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^3: question 1st - undefined behaviour

by Riales (Hermit)
on Sep 23, 2013 at 23:08 UTC ( #1055401=note: print w/ replies, xml ) Need Help??


in reply to Re^2: question 1st - undefined behaviour
in thread question 1st - undefined behaviour

Oh, you're right.

I found this from http://perldoc.perl.org/perlop.html#Auto-increment-and-Auto-decrement:

Note that just as in C, Perl doesn't define when the variable is incremented or decremented. You just know it will be done sometime before or after the value is returned. This also means that modifying a variable twice in the same statement will lead to undefined behavior.


Comment on Re^3: question 1st - undefined behaviour

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (7)
As of 2014-10-02 03:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    What is your favourite meta-syntactic variable name?














    Results (45 votes), past polls