Jerome Quelin > Language-Befunge > Language::Befunge::Debug

Download:
Language-Befunge-4.13.tar.gz

Dependencies

Annotate this POD

Website

CPAN RT

Open  0
View/Report Bugs
Source  

NAME ^

Language::Befunge::Debug - optimized debug solution for language::befunge

SYNOPSIS ^

    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

DESCRIPTION ^

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.

PUBLIC API ^

Exported functions

The module is exporting only one function:

Other functions

The module also provides 2 functions to control debugging:

SEE ALSO ^

Language::Befunge

AUTHOR ^

Jerome Quelin, <jquelin@cpan.org>

Development is discussed on <language-befunge@mongueurs.net>

COPYRIGHT & LICENSE ^

Copyright (c) 2001-2009 Jerome Quelin, all rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

syntax highlighting: