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


in reply to bc.exe - trivial one-liner

I personally am a fan of perl -ple'$_="> ".eval'. This is probably the most common script I write. Of course, your code above has the advantage of being transferrable to a system without Perl.