DBI Utility Functions

These functions are invoked as DBI::func_name(), rather than as DBI->func_name().

  • @bool = DBI::looks_like_number (@array);

    Takes alist of values and returns an array with one member for each element of the list. Each member indicates whether the corresponding argument looks like a number: true if it does, false if it doesn't, and undef if the argument is undefined or empty.

  • $str = DBI::neat ($value [, $maxlen]);

    Returns a string containing a nicely formatted representation of the $value argument. Strings are quoted; numbers are not. (But note that quoted numbers are considered to be strings.) Undefined values are reported as undef, and unprintable characters are reported as '.'.

    The $maxlen argument controls the maximum length ...

Get MySQL now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.