Sub::Contract::Debug - Display debug information
use Sub::Contract::Debug qw(debug); debug(1,"doing that"); debug(2,"and that");
To turn on debug information at various levels of verbosity, set the variable $DEBUG within Sub::Contract::Debug to a positive integer. The higher the value, the higher the verbosity.
debug($level,$message)
Print a debug message to stdout if $level is lower or equal to $Sub::Contract::Debug::DEBUG.
$level
$Sub::Contract::Debug::DEBUG
See 'Sub::Contract'.
$Id: Debug.pm,v 1.4 2008/05/22 16:03:24 erwan_lemonnier Exp $
Erwan Lemonnier <erwan@cpan.org>
<erwan@cpan.org>
See Sub::Contract.
To install Sub::Contract, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Sub::Contract
CPAN shell
perl -MCPAN -e shell install Sub::Contract
For more information on module installation, please visit the detailed CPAN module installation guide.