Net::Inspect::Debug - provides debugging facilities for Net::Inspect library
the following functionality is provided:
if $DEBUG is set prints out debugging message, prefixed with "DEBUG" and info about calling function and code line. If @args are given msg is considered and format string which will be combined with @args to the final message.
$DEBUG
@args
msg
This function is exported by default.
Same es debug, but prefixed with object. Usually overwritten in classes to show info about object.
This function can be exported on demand.
if $TRACE{'*'} or $TRACE{$$pkg}' is set prints out trace message, prefixed with "[$pkg]". $pkg is the last part of the package name, where trace got called. If @args are given msg is considered and format string which will be combined with @args to the final message.
$TRACE{'*'}
$TRACE{$$pkg}
$pkg
Same es trace, but prefixed with object. Usually overwritten in classes to show info about object.
If true debugging messages will be print. Can be explicitly imported, but is not exported by default.
If true for '*' or $pkg (see trace) trace messages will be print. Can be explicitly imported, but is not exported by default.
trace
1;
To install Net::Inspect, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::Inspect
CPAN shell
perl -MCPAN -e shell install Net::Inspect
For more information on module installation, please visit the detailed CPAN module installation guide.