Category Archives: More control structures

Why Perl’s conditional operator is right associative

What happens if you change the associativity of the conditional operator? PHP implemented it incorrectly and now it’s part of the language. In What does this PHP print?, Ovid posted a bit of PHP code that gives him unexpected results. The code comes from a much longer rant by Alex Munroe titled PHP: a fractal […]

Updates to Chapter 10, “More Control Structures”

[This post notes differences between the fifth and sixth editions.] There aren’t any updates really, besides fixing up errata and style. The latest perls haven’t added any new magic to these guys. We do add a footnote about autodie, but that’s not really earth-shattering news, is it?