Perl-Sensitive Sunglasses | |
PerlMonks |
Re^4: inside-out objects using arrays?by fishbot_v2 (Chaplain) |
on Sep 18, 2005 at 00:56 UTC ( [id://492950]=note: print w/replies, xml ) | Need Help?? |
You could avoid that problem by assigning the index to the first undef slot, rather than straight incrementing:
You end up, though, with an O(n) constructor. But perhaps the savings in access make up for this.
In Section
Seekers of Perl Wisdom
|
|