http://www.perlmonks.org?node_id=1044564


in reply to Re: comparison of character
in thread comparison of character

probably because you used || instead of or its (...) || (...) ... or ... or ... or ...

As already pointed out by others, it should really be a logical and, not a logical or.