in reply to Tie'ing a dbh result set?
It depends on how you access the info. The docs for tieing an array don't include any hook for iteration; they've only got: FETCH, STORE, FETCHSIZE, STORESIZE, EXTEND, EXISTS, DELETE, CLEAR, PUSH, POP, UNSHIFT, SHIFT, SPLICE, UNTIE, DESTROY.
If you're only pulling the info out via unshift or pop, you might be able to make something work, but you'd have to booby-trap FETCH to ensure that the data was only accessed via unshift and pop. Sounds ugly. You may have to bite the bullet.
Or maybe someone cleverer than I will have a brilliant method.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Tie'ing a dbh result set?
by jfroebe (Parson) on Jul 25, 2011 at 19:37 UTC | |
by tye (Sage) on Jul 26, 2011 at 17:12 UTC | |
by jfroebe (Parson) on Jul 26, 2011 at 17:29 UTC | |
by thargas (Deacon) on Jul 26, 2011 at 15:03 UTC |