And the trailing "\n" will cause your numeric comparison to never get a match.
In reply to Re^4: going through an array by steves in thread going through an array by Anonymous Monk