Nick wrote:
>I can currently set a debug variable that prevents output, but
>I would rather the debug statements were never executed for
>optimum speed.

use constant DEBUG => 1;  #or 0
print "Blah" if(DEBUG);

The if-statement should be resolved at compile time, not run-time AFAIK.


/J

------ ---- --- -- -- -- -  -   -    -        -
Johan Lindström                    Boss Casinos
Sourcerer                     [EMAIL PROTECTED]
                  http://www.bahnhof.se/~johanl/
If the only tool you have is a hammer,
everything tends to look
like a nail 


_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users

Reply via email to