in reply to 'use strict' causing me an error
This is the same situation that I explained to you in Re: Re: Re: Re: Gettin ALL errors with carp module; CGI::Carp qw(fatalsToBrowser) only captures the generic "Compilation failed" error message, not all the warnings that explain why compilation failed. The only difference is this time the compilation problems are in a BEGIN block.
Once again, you can easily avoid this situation by testing your scripts from the command line to make sure they compile, before running them through the web server. Otherwise, check the server error logs for all the compilation warnings.
|
|---|