legLess has asked for the wisdom of the Perl Monks concerning the following question:
I'm using the DEBUG constant for a number of purposes in the script (local vs. remote server paths, logging, etc.) and thought it would be nice to use it for fatalsToBrowser as well. The above code doesn't do what I want, though: the script 'use's CGI::Carp regardless of the value of DEBUG.use constant DEBUG => 1; DEBUG && BEGIN { use CGI::Carp qw/ fatalsToBrowser /; };
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: BEGIN and 'use' question
by jwest (Friar) on May 07, 2002 at 18:15 UTC | |
|
Re: BEGIN and 'use' question
by jsprat (Curate) on May 07, 2002 at 18:19 UTC | |
by legLess (Hermit) on May 07, 2002 at 20:47 UTC | |
by Elian (Parson) on May 08, 2002 at 05:48 UTC | |
|
Re: BEGIN and 'use' question
by Anonymous Monk on May 08, 2002 at 12:41 UTC | |
by Anonymous Monk on May 08, 2002 at 19:48 UTC | |
|
Re: BEGIN and 'use' question
by cLive ;-) (Prior) on May 09, 2002 at 12:13 UTC | |
by legLess (Hermit) on May 09, 2002 at 17:12 UTC |