Debian Codegraph @

debian/control

raw
1 Source: libformat-human-bytes-perl
2 Maintainer: Debian Perl Group <[email protected]>
3 Uploaders: Damyan Ivanov <[email protected]>
4 Section: perl
5 Testsuite: autopkgtest-pkg-perl
6 Priority: optional
7 Build-Depends: debhelper-compat (= 13), libmodule-install-perl
8 Build-Depends-Indep: perl
9 Standards-Version: 3.9.5
10 Vcs-Browser: https://salsa.debian.org/perl-team/modules/packages/libformat-human-bytes-perl
11 Vcs-Git: https://salsa.debian.org/perl-team/modules/packages/libformat-human-bytes-perl.git
12 Homepage: https://metacpan.org/release/Format-Human-Bytes
13
14 Package: libformat-human-bytes-perl
15 Architecture: all
16 Depends: ${misc:Depends},
17 ${perl:Depends}
18 Description: Format a bytecount and make it human readable
19 Format::Human::Bytes is used to convert bytecount values to human-readable
20 strings. It will return you a printable string which is more readable by
21 humans than a simple bytecount.
22 .
23 For example:
24 use Format::Human::Bytes;
25 $readable = Format::Human::Bytes::base2($bytecount[,$decimals]);
26 It will convert in base 2 format.
27 .
28 $readable = Format::Human::Bytes::base10($bytecount[,$decimals]);
29 It will convert in base 10 format.
30 .
31 Another way is to create constructor for example:
32 .
33 $fhb = Format::Human::Bytes->new();
34 $readable = $fhb->base2($bytecount[,$decimals]);
35 $readable = $fhb->base10($bytecount[,$decimals]);