We don't bite newbies here... much | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
I did consider including that, but by providing a tied array, you're kind of encouraging end users to treat it as any old array. So they might not consider that doing something like:
Is going to impact performance way more than they might expect. If it's exposed as an iterator, then it encourages them to access items in a one-at-a-time sequential fashion. They still can slurp it all into an array, but they can't blame you when that eats up all their memory. Not saying it's never a good idea, but situations where it is aren't going to be that common. In reply to Re^3: Index or iterate - your choice
by tobyink
|
|