in reply to Re: Re: Am I missing something here?
in thread Am I missing something here?
This will allways call the Debug() sub. The overhead may or may not be a problem in your production systems, it all depends on how many times this call is executed.
Imagine a few thousand times per minute. (Or per second...)
I propose the alternative solution:
$debug=1; $debug&&print("Debug info...\n");
*DEBUG=\1; $DEBUG&&print("Debug info...\n");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(lestrrat) Do use 'constant': Re(4): Am I missing something here?
by lestrrat (Deacon) on Nov 08, 2001 at 23:09 UTC | |
by Biker (Priest) on Nov 09, 2001 at 01:18 UTC | |
|
Re4: Am I missing something here?
by blakem (Monsignor) on Nov 08, 2001 at 00:47 UTC | |
by Biker (Priest) on Nov 08, 2001 at 01:44 UTC | |
by suggus (Sexton) on Nov 08, 2001 at 02:15 UTC |