Hello, monks,
I'm working on a web application that is getting bigger and bigger all the time. I'm running it on Apache web server. I have the -w switch turned on. However, my Apache error.log file is filled with hundreds of messages of this sort: Use of uninitialized value in concatenation (.) or string etc This means that some of my variables are undef ined when I'm using them. To avoid these warnings I'd have to set if(defined($something)) statements in my code. But I don't want to make my code more complicated to read. So the question is: what is best to choose, turn off the -w option, do variable check in the code, divide/structure the code or is there another way of doing this? How to find a balance between strictness and over-complication of the code?
Thank you.
In reply to The -w switch on a web application by Heidegger
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |