BSD Ports

finance/p5-Data-Currency 0.06000nb14 NetBSD

Container class for currency conversion/formatting

System
NetBSD
Repository
pkgsrc
Maintainer
[email protected]
Last update
Commit
618415630a
License
gnu-gpl-v2 OR artistic
Categories
finance, perl5
Package size
8.7 KiB, 21.0 KiB installed

Description

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.

In the other systems

SystemPortVersion
NetBSDfinance/p5-Data-Currency0.06000nb14
FreeBSDfinance/p5-Data-Currency0.06000_1
DragonFlyfinance/p5-Data-Currency0.06000_1
HardenedBSDfinance/p5-Data-Currency0.06000_1
GhostBSDfinance/p5-Data-Currency0.06000_1

Install

Binary package:

pkgin install p5-Data-Currency

From pkgsrc:

cd /usr/pkgsrc/finance/p5-Data-Currency && make install clean

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

RepositoryVersion
NetBSD 10.1 x86_640.06000nb14
NetBSD 10.1 aarch640.06000nb13
SmartOS / illumos x86_640.06000nb14
macOS 15 arm640.06000nb14

Dependencies

Run dependencies 5
Required by 1

Commit history 1

DateCommitCreditsLog message
618415630a wiz *: recursive bump for perl5 5.44.0