good chemistry is complicated,
and a little bit messy -LW
Payment changerby uksza (Abbot)
|on Dec 28, 2004 at 09:03 UTC||Need Help??|
uksza has asked for the
wisdom of the Perl Monks concerning the following question:
I'm still practise my skill in Perl. I walk slowly, but it's very nice travel by Camel's track.
So, I need some advices about style code.
Look please at this:
To try OO programing in Perl I've made module to calculate how many bills and coins I need to pay for example $133 = (100+20+10+2+1).
It's propably quite helpful for employers.
He can't get 5x$100 from bank for 6 workers ($135 + $80 + $66 + $150 + $69= $500),
but he can do this:
and this is code of payment.pm
So, what do you thing about this? My style is good? Have you any advices for me? If it's good, I'm going to add some features into my class. ;-)
Thanks for your's advices and time.