Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^2: Using overload to parse arithmetic terms

by blokhead (Monsignor)
on Feb 07, 2006 at 14:41 UTC ( [id://528524]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    package Op;
    sub new {
    ...
    @ISA = qw[Op];
    sub precedence { 100 }
    sub display { $_[0][0] }
    
  2. or download this
    Op::Multiplication->new(
      Op::Term->new(5),
    ...
      )
    )->display;
    # 5 + 6 * 7
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2024-04-26 01:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found