Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^2: Using overload to parse arithmetic terms

by blokhead (Monsignor)
on Feb 07, 2006 at 14:41 UTC ( #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
Node Status?
node history
Node Type: note [id://528524]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (13)
As of 2015-07-02 11:02 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 (34 votes), past polls