![]() |
|
Problems? Is your data what you think it is? | |
PerlMonks |
Re: How can I Disable script.error_log ?by Malach (Scribe) |
on Feb 18, 2002 at 21:46 UTC ( [id://146260]=note: print w/replies, xml ) | Need Help?? |
-w is there for a reason... to generate warnings about possible problems. If you don't care about the warnings, then remove it. If you do care about the warnings, then fix the script. Personally, I "use warnings;" and "use diagnostics;" during development. I'm of the opinion that once the scripts are completed, these will produce no output, so there's no harm in leaving them in place (in case something occurs that I haven't considered). Then, I'll get my warnings and diagnostics, and should be able to pick up the error faster. In once instance, I couldn't figure out how to avoid the warning before putting the script in production, so I commented out use warnings; (which I later went back and fixed). If you have control over the apache config you should be able to alter the logging... but I'd guess you're on a shared hosting service of some sort, so that's probably not an option. Malach
In Section
Seekers of Perl Wisdom
|
|