Language::Befunge::Debug - optimized debug solution for language::befunge
version 5.000
use Language::Befunge::Debug; debug("foo\n"); # does nothing by default Language::Befunge::Debug::enable(); debug("bar\n"); # now that debug is enabled, output on STDERR Language::Befunge::Debug::disable(); debug("baz\n"); # sorry dave, back to no output
This module provides a debug() subroutine, which output on STDERR if debugging is enabled. If debugging is disabled (the default), perl will optimize out those debugging calls.
debug()
The module is exporting only one function:
debug( @stuff );
If debugging is enabled (which is not the default), write @stuff on STDERR.
@stuff
The module also provides 2 functions to control debugging:
Language::Befunge::Debug::enable();
Request that calls to debug() really start output on STDERR.
Language::Befunge::Debug::disable();
Request that calls to debug() stop output-ing on STDERR.
Language::Befunge
Jerome Quelin
This software is copyright (c) 2003 by Jerome Quelin.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Language::Befunge, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Language::Befunge
CPAN shell
perl -MCPAN -e shell install Language::Befunge
For more information on module installation, please visit the detailed CPAN module installation guide.