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


in reply to Re: Golf: RPN calculator
in thread Golf: RPN calculator

I think you neglected to read any input... :) perl -ple's,(\S+)\s+(\S+)\s*([-+*/]),"$1$3$2",ee&&redo'

Replies are listed 'Best First'.
Re: Re: Re: Golf: RPN calculator
by japhy (Canon) on May 11, 2001 at 01:58 UTC