Test::Server::Util - some usefull functions for Test::Server files
use Test::Server::Util qw(parse_size format_size); print parse_size('5G'), "\n"; print format_size(5*1024*1024*1024), "\n";
Some usefull functions for Test::Server files. See FUNCTION section.
$size can be a number with optional sufix one of [GMK]. Returns size in bytes.
$size should be number of bytes. Returns number of kilo/mega/giga bytes value formated with sufix (one of [KMG]).
Jozef Kutej
To install Test::Server, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Test::Server
CPAN shell
perl -MCPAN -e shell install Test::Server
For more information on module installation, please visit the detailed CPAN module installation guide.