Think about Loose Coupling | |
PerlMonks |
Re^11: Getting for() to accept a tied array in one statementby ikegami (Patriarch) |
on Apr 24, 2019 at 15:13 UTC ( [id://1232949]=note: print w/replies, xml ) | Need Help?? |
No, the approach you describe fails. It gives incorrect result for any of the following:
Therefore, the class must provide a FETCHSIZE must return the correct size up front. It doesn't matter that you can rely on a bug to get away with it in for (@tied). Updated for clarity.
In Section
Seekers of Perl Wisdom
|
|