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'