By uncommenting the last two lines of the loop you are overwriting the $sth object which will necessarily affect the condition in the while test. If you don't want to overwrite $sth choose a different variable name to hold the inner statement handle.
In reply to Re: Why does DBI prepare break my loop?
by hippo
in thread Why does DBI prepare break my loop?
by aditya1977
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |