On Fri, 14 Mar 2014 13:03:58 -0400, Ralph Grove wrote: > I'm trying to determine how Perl evaluates operands for expressions. I > expected the following code to output 3, 4, and 5, as it would if > executed as a C++ or Java program. The actual output that I get > (v5.16.2), however, is 4, 4, and 5. This leads me to believe that > operand evaluation is either non-deterministic and compiler-dependent, > or it's simply broken.
Kudos for the curiosity. Did you have any other reason for wanting to know how this worked in Perl? -- Peter Scott http://www.perlmedic.com/ http://www.perldebugged.com/ http://www.oreillyschool.com/certificates/perl-programming.php http://www.informit.com/store/product.aspx?isbn=9780133036268 -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/