Padre::Logger - Compile-time logging library for Padre
# In the launch/dev.pl script BEGIN { $Padre::Logger::DEBUG = 1; } use Padre; # In each Padre::Foo class use Padre::Logger; sub method { TRACE('->method') if DEBUG; # Your code as normal }
This is a logging utility class for Padre. It provides a basic set of simple functionality that allows for logging/debugging/tracing statements to be used in Padre that will compile out of the application when not in use.
To install Padre, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Padre
CPAN shell
perl -MCPAN -e shell install Padre
For more information on module installation, please visit the detailed CPAN module installation guide.