NAME

PGUtil.pm - Utility Methods

METHODS

not_null

Usage:

not_null($item)

Returns 1 if $item is not null, and 0 otherwise. Undefined quantities, empty arrays, empty hashes, and strings containing only whitespace are null and return 0.

pretty_print

Usage:

pretty_print($rh_hash_input, $displayMode, $level)

This method is useful for displaying the contents of objects while debugging.

The $displayMode parameter should be one of "TeX", "text", or "html" The default is "html".

The $level parameter is the cut off for the depth into objects to show. The default is 5.