Re: [SPOILER] RPN calculator
Rod Adams <[email protected]> Fri, 01 Oct 2004 12:43:01 -0500
| Newsgroups | gmane.comp.lang.perl.qotw.discuss |
|---|---|
| Message-ID | <[email protected]> |
Roger Burton West wrote:
>On Fri, Oct 01, 2004 at 11:00:59AM -0500, Rod Adams wrote:
>
>
>
>>my @perl_unary_ops = qw{ ++ -- sin cos abs int exp log sqrt atan2 rand };
>>
>>
>
>Um... atan2 takes two arguments. That's why I distinguished between
>binary-infix and binary-prefix operations in my solution.
>
>
>
>
Did I mention it was a 20 minute solution, and that I was half asleep?
I'll likely pump out a new version later today.
-- Rod