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


in reply to Adding 2 + 2

The Doesn't completely use Perl solution. Last one, I promise.
#!/usr/local/bin/perl -w use strict; { my $v=2; print "Adding $v + $v = ", `echo $v $v + p | dc`; }
(This should even work on Win32 with the cygwin stuff)

--Chris

e-mail jcwren