in reply to Re^2: Tie'ing a dbh result set?
in thread Tie'ing a dbh result set?
Actually, as part of playing with a new toy I wrote, I noticed that for( @tiedarray ) actually deals with the size of the array changing each iteration so you don't need to know the number of records up-front like I initially worried. You can just always fetch at least one record ahead and return the size of what you have fetched so far -- for for( @tiedarray ) to work fine as an iterator.
- tye
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Tie'ing a dbh result set? (unknown size)
by jfroebe (Parson) on Jul 26, 2011 at 17:29 UTC |