Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Calc Help

by MidLifeXis (Monsignor)
on Aug 19, 2014 at 17:12 UTC ( [id://1098007]=note: print w/replies, xml ) Need Help??


in reply to Calc Help

I am proceeding on the assumption that this is a homework assignment (due to the formatting and wording of the 'requirements'). Given that, perhaps a few questions to guide you on how process() might work:

  • If you have CLEAR, what should it do to $total?
  • Same question for each of the other operations.
  • How do you pass update the value of $total outside of the process() subroutine?

Others may spoon feed you a solution, but I prefer helping you find the answer yourself.

  • found in another location on the intertubes

--MidLifeXis

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2024-04-23 23:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found