Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Parse user-entered expressions into subs for an awk-like program

by GrandFather (Saint)
on Jan 28, 2007 at 21:53 UTC ( [id://596992]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    a/b
    b+c
    c*a/(b+a)
    
  2. or download this
    Eval of $hash{a}/$hash{b} failed:
       Illegal division by zero at (eval 10)[noname.pl:10] line 1, <DATA> 
    +line 1.
    
    $hash{b}+$hash{c} = 3
    $hash{c}*$hash{a}/($hash{b}+$hash{a}) = 3
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (2)
As of 2024-04-26 00:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found