> Using tied hashes, you could conceivably make your own ordered hash class > and use that as the data structure you return. You'd still basically have > two data structures (for performance) but the fact that it is two data > structures would be hidden behind the tied hash which would be programmed > to iterate the keys using the array rather than the keys function on the > hash part. > > I think there is source code for this publicly available, but I forget > where I saw it. You can get some docs from perldoc perltie though. Tie::IxHash -- Eric
- Data structure question Drew Taylor
- Re: Data structure question Ken Y. Clark
- Re: Data structure question Drew Taylor
- Re: Data structure question Nick Tonkin
- Re: Data structure question Gunther Birznieks
- Re: Data structure question Eric Cholet
- Re: Data structure question Stas Bekman
- Re: Data structure question Drew Taylor
- Re: Data structure question Drew Taylor
- Re: Data structure question Drew Taylor
- Re: Data structure question Perrin Harkins
- Re: Data structure question Stas Bekman
- Re: Data structure question Drew Taylor
- Re: Data structure question Ken Miller
- Re: Data structure question Drew Taylor
- Re: Data structure question darren chamberlain