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 /; };
In reply to BEGIN and 'use' question by legLess
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |