Help for this page

Select Code to Download


  1. or download this
    package Log::Maybe {
        use strict;
    ...
        }
    };
    1;
    
  2. or download this
    use strict;
    use warnings;
    ...
    debugf( 'name: %s, age: %d', 'Jack', 23 );    # dumpf takes a sprintf 
    +form
    $LOG_LEVEL = 0;                               # disable logging at run
    +time
    debug('nothing is logged');                   # what it says on the ti
    +n