
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