djzort/torrus-newfeatures — comment on commit 713f18449c5b5dadd24c835ed8c1dcc8b242c69d
File:  line 0
By djzort:

by way of explanation in perl, if you make a comparison against an undefined variable then perl warns. so you must first test that variable is not undef (or just test it it 0 also is negative, as in this case) then test the value in question.

testing for length($foo) is also incorrect and is a bad habit from java, i have changed this elsewhere in the code.

you are welcome to disagree, as you have decided to disagree with perl best practices in many other instances. which is your right.