Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: dividend with recursive routine

by BioLion (Curate)
on Aug 23, 2010 at 18:52 UTC ( #856789=note: print w/replies, xml ) Need Help??


in reply to dividend with recursive routine

This is a job for *subroutines(wo|man)*!! Sorry I don't have time to give you a proper answer, but check out perlsub and read up on subroutines (i.e. recursively used 'functions', such as your dividend calculator) - the important bit is passing info in and out.

Hope this helps, and sorry for the brief answer...

Just a something something...

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://856789]
help
Chatterbox?
[Lady_Aleena]: It feels a bit nice doing something that needed doing afk. Helps get my mind off of on keyboard problems.
[Lady_Aleena]: Now hubby won't stop talking to the new remote control though.

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (10)
As of 2017-05-25 19:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?