Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- £ukasz M±drzycki
December 30, 2004, 1:27 am
rate this thread
I've made module for my friend. Mayby someone need it too?
Comments, sugestions and spell checking gladly accepted.
Money::PaymentPreparer - change sum to bills and coins.
my @my_bills = qw (200 100 50 20 10 5 2 1);
my $object = PaymentPreparer->new();
%result = $object->get();
This module change sum (i.e. payment) to collection of bills and coins
and keep it all in one hash returned by *add* or *get*.
new creates the array object.
gets @list of nominations bills and coins. In Europe it should looks
"@my_table = qw (500 200 100 50 20 10 5 2 1);"
add value to change. It returns %hash of nominals with numbers of bills.
get returns %hash of nominals with numbers of bills.
Support for decimal values.
Check for indivisible values.
*- RLU: #272802 | got slack?