help | logout
smallSizeConvert

smallSizeConvert

Name

smallSizeConvert -- Converts small size value.

Synopsis

$err = $mod->smallSizeConvert($data);

Description

This function converts the given string data to a long integer representation.

Available suffixes are:

  • megabytes

  • kilobytes

  • bytes

Returns

Returns a string representation of the given data (or -1 if an error occurred). In case of error, the program will croak() with an appriopriate message.