I'm not even sure what you're doing. There's a few issues with the snippets you posted:
- In the while, you treat $entry as a number. Then, you treat it as a subroutine name. Do you have a bunch of subroutines named 1, 2, 3, etc?
- Assuming you mean $i = $entry * (2 / 3);, the code will never end.
- In the second snippet, you are doing a numeric check, then a string check. (< is numeric, ne is string.) While this will work (because both $i and $entry will be converted to strings and compared), it's better to do numeric checks if you're dealing with numbers.
I guess what I'm asking is - what on earth are you doing? What is $entry?
Oh - predicability has 2 't's in it. :-)
------
We are the carpenters and bricklayers of the Information Age.
Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement.