Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

(jcwren) RE: Adding 2 + 2

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


in reply to Adding 2 + 2

#!/usr/local/bin/perl -w use strict; { my $addy = "2 + 2"; print "Adding $addy = ", eval ($addy), "\n"; }
It's late, it's time for bed, and I couldn't make Inline work in 30 seconds, so I cheated...

--Chris

e-mail jcwren


Comment on (jcwren) RE: Adding 2 + 2
Download Code
Replies are listed 'Best First'.
RE: (jcwren) RE: Adding 2 + 2
by merlyn (Sage) on Sep 11, 2000 at 07:44 UTC

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (10)
As of 2015-07-30 11:23 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 (271 votes), past polls