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


in reply to Re: Re: (Golf) Reversing RPN Notation
in thread (Golf) Reversing RPN Notation

With the hash that I gave, that solution is correct.

If the hash was, instead

%o = ( '-' => 1, '+' => 2, '*' => 3, '/' => 3 );
then the code would produce the second, correct solution. In other words, the code's correct, the givens are just wrong :-)


Dr. Michael K. Neylon - mneylon-pm@masemware.com || "You've left the lens cap of your mind on again, Pinky" - The Brain