Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

(jcwren) RE: Adding 2 + 2

by jcwren (Prior)
on Sep 11, 2000 at 21:44 UTC ( #31942=note: print w/ replies, xml ) Need Help??


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


Comment on (jcwren) RE: Adding 2 + 2
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://31942]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (10)
As of 2015-07-08 06:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (94 votes), past polls