http://qs1969.pair.com?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.

Replies are listed 'Best First'.
Re^2: bc.exe - trivial one-liner
by ady (Deacon) on Jun 15, 2005 at 08:36 UTC
    Or
    c.bat: perl -ple "$_='> '.eval"
    in my cmd shell.
    -- allan