"be consistent" | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
What is different between what you call a collection (im assuming it isnt _exactly_ the same as VB calls a collection) and a hash or tiedhash?
Personally I dont understand the difference. Consider the methods you listed.... Now lets have a look at the Tie::Hash documentation... Seems like this cover pretty much what is needed from a collection. More advanced methods could be made available through the tied() keyword, in fact you could use some intelligent parameter conventions and aliases to provide both the standard tiedhash interface and a more powerful OO oriented one as well. (For instance in one TIEHASH i wrote I did just this with the "FIRSTKEY" method)
Yves / DeMerphq In reply to Re: What do you like in a Collection class?
by demerphq
|
|