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


in reply to confused: string and number comparison

Thank you for your answers. As lostjimmy and moritz already told the problem could be solved easily by doing string comparison. I think my problem was that perl turns a string which doesn't represent a number to zero for numerical comparison as johnqq stated.