in reply to Perl Paradigm

I think you must be mistaken. Maybe you should post the actual code.

Update:Is $i a number? I notice you are using ne in the second example which is for non-numeric data. Less-than will have interesting results if $i or $entry aren't numbers.