Welcome to the Monastery | |
PerlMonks |
Re: Golf: RPN calculatorby jmcnamara (Monsignor) |
on May 11, 2001 at 12:17 UTC ( [id://79658]=note: print w/replies, xml ) | Need Help?? |
This was a great idea for a game of Golf. Recent outings have been too much like mini CS projects. Sorry Masem. ;-) This uses your methodology. There are 69 chars in the body of the program. It passes -w and strict. It also handle negative numbers:
I recently spent two months of my spare time implementing a type of RPN parser using Parse::RecDescent. Obviously I was taking the wrong approach. :-) John. --
In Section
Meditations
|
|