Try adding 'use warnings'. ( Use of uninitialized value in numeric ne (!=) )
In reply to Re: Mixing OR with conditional operator by BrowserUk in thread Mixing OR with conditional operator by jockel