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 O’Reilly online learning.
O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.