Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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 studying the Monastery: (11)
As of 2015-07-08 02:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (93 votes), past polls