Skip to content
Sections
>> Trisquel >> 套件 >> nabia >> perl >> libformat-human-bytes-perl
etiona  ] [  nabia  ] [  aramo  ]
[ 原始碼: libformat-human-bytes-perl  ]

套件: libformat-human-bytes-perl (0.06-1)

Format a bytecount and make it human readable

Format::Human::Bytes is used to convert bytecount values to human-readable strings. It will return you a printable string which is more readable by humans than a simple bytecount.

For example:

   use Format::Human::Bytes;
   $readable = Format::Human::Bytes::base2($bytecount[,$decimals]);
It will convert in base 2 format.

   $readable = Format::Human::Bytes::base10($bytecount[,$decimals]);
It will convert in base 10 format.

Another way is to create constructor for example:

   $fhb = Format::Human::Bytes->new();
   $readable = $fhb->base2($bytecount[,$decimals]);
   $readable = $fhb->base10($bytecount[,$decimals]);

其他與 libformat-human-bytes-perl 有關的套件

  • 依賴
  • 推薦
  • 建議
  • dep: perl
    Larry Wall's Practical Extraction and Report Language

下載 libformat-human-bytes-perl

下載可用於所有硬體架構的
硬體架構 套件大小 安裝後大小 檔案
all 7.7 kB55 kB [文件列表]