[ABE.pm] printing status messages

Faber J. Fedor faber at linuxnj.com
Thu Apr 26 18:15:24 PDT 2007


Using GetOpts, I usually have a command line options like --debug or
--verbose which causes my program to spit out a lot of status
messages/debug statements.

My code is peppered with a lot of stmts like this:

if (is_debug) {
    print "This is a status message\n";
    print "x = $x\t y=$y\n";
}


Is there a better way?



-- 
 
Regards,
 
Faber Fedor
President
Linux New Jersey, Inc.
908-320-0357
800-706-0701

http://www.linuxnj.com



More information about the ABE-pm mailing list