http://www.perlmonks.org?node_id=302758


in reply to Re: How's your Perl?
in thread How's your Perl?

re 8: perl has a fixed evaluation order (L->R for most operators, including eq), so you can use that. That it's not officially defined/documented is ofcourse of no concern :-)

Replies are listed 'Best First'.
Re: Re: Re: How's your Perl?
by diotalevi (Canon) on Oct 28, 2003 at 18:55 UTC
    I've now see the answer (and its obvious) for #8 and in that rare case the evaluation order doesn't actually matter since it won't affect anything but if it were anything else then I'd have to call shenanigans on you for the trick question since you'd only be testing on the implementation and not the specified language.
      you'd only be testing on the implementation and not the specified language
      Joke right? specified language? perl? ;-)

      in any case... many other exercises (5, 7, 9a, 9b, 11, probably 10 too) also rely on undefined behavior, or at least their official answers do. It's considered acceptable for obfu and bizarre exercises :-)