summaryrefslogtreecommitdiff
path: root/finance/p5-Data-Currency/DESCR
blob: a748d41408a19e5616fae220176f9023b7ba53c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
The Data::Currency module provides basic currency formatting and
conversion:

    my $price = 1.23;
    my $currency = Data::Currency->new($price);

    print $currency->convert('CAD')->as_string;

Each Data::Currency object will stringify to the original value
except in string context, where it stringifies to the format
specified in format.