Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

(jeffa) Re: maths-thing

by jeffa (Bishop)
on Sep 01, 2002 at 13:53 UTC ( [id://194455]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    if ($x == "0"){ $num_c = $num_a + $num_b }
    if ($x == "1"){ $num_c = $num_a - $num_b }
    if ($x == "2"){ $num_c = $num_a * $num_b }
    
  2. or download this
    # ...
    my $equat = "$num_a $symbols[$x] $num_b";
    ...
    # ...
    $num_c = eval $equat;
    # ...
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (7)
As of 2024-04-19 10:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found