FORMAT MODULE - format.pm
This module provides a set of macros for formating strings and numbers.

The format module provides the following macros:

printf(format, arg1, arg2, ...)
    The printf macro behaves in the same way as the Perl/C function printf. It takes in a format string followed by a list of arguments to print. See the printf(3) man page or Perl documentation for full details of the printf function.

toupper(string)
    Converts input string to upper case.

toupperfirst(string)
    Converts first character of input string to upper case.

tolower(string)
    Converts input string to lower case.

tolowerfirst(string)
    Converts first character of input string to lower case.

substr(string, offset, length)
    Extracts a substring from input string. substr behaves in the same way as the Perl substr function. offset is used to specifiy the first character of the string to output (negative for offset from end of string), length is the length of the string to output. If length is omitted everything from the offset is returned. For further information on substr see the Perl documentation.

The format macros are implemented using the function.pm module.