Jozef Kutej > Test-Server-0.06 > Test::Server::Util

Download:
Test-Server-0.06.tar.gz

Annotate this POD

View/Report Bugs
Source  

NAME ^

Test::Server::Util - some usefull functions for Test::Server files

SYNOPSIS ^

        use Test::Server::Util qw(parse_size format_size);
        
        print parse_size('5G'), "\n";
        print format_size(5*1024*1024*1024), "\n";

DESCRIPTION ^

Some usefull functions for Test::Server files. See FUNCTION section.

FUNCTIONS ^

parse_size($size)

$size can be a number with optional sufix one of [GMK]. Returns size in bytes.

format_size($size)

$size should be number of bytes. Returns number of kilo/mega/giga bytes value formated with sufix (one of [KMG]).

AUTHOR ^

Jozef Kutej

syntax highlighting: