PGUtil

Jump to: Site Navigation

Utility Macros

not_null

  not_null(item)  returns 1 or 0
     
     empty arrays, empty hashes, strings containing only whitespace are all NULL and return 0
     all undefined quantities are null and return 0

pretty_print

        Usage: warn pretty_print( $rh_hash_input, displayMode, level)
                   TEXT(pretty_print($ans_hash, displayMode, level));
                   TEXT(pretty_print(~~%envir, displayMode, level ));

This can be very useful for printing out HTML messages about objects while debugging


Site Navigation