|
|
| Perl Monk, Perl Meditation | |
| PerlMonks |
Re^2: Not quite an OO tutorialby Lady_Aleena (Priest) |
| on Feb 24, 2011 at 06:21 UTC ( [id://889915]=note: print w/replies, xml ) | Need Help?? |
|
Since GrandFather wrote the object oriented code above for me, I am more than willing to show how I would write it in functions. I let my eyes glaze over on the overdrive bit, so I don't have a functional way to do that (if there is a way, that is). Let's start with the module:
Now the script:
It may not be nice and have things like inheritance that the OO version has, but it will do the same thing in a crunch. Have a cookie and a very nice day!
Lady Aleena
In Section
Meditations
|
|
||||||||||||||||||||||||||||||||||||||||||