On Tue, 6 Jun 2000, Eric Cholet wrote:
> > 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
and in perl5.6 it's called pseudohash (well it was known before but is
supported in 5.6)
http://www.perl.com/pub/doc/manual/html/pod/perldelta.html#Pseudo_hashes_are_supported
also take a look at this:
Building a Better Hash
http://www.dfan.org/real/tpj_hash.html
_____________________________________________________________________
Stas Bekman JAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide http://perl.apache.org/guide
mailto:[EMAIL PROTECTED] http://perl.org http://stason.org/TULARC
http://singlesheaven.com http://perlmonth.com http://sourcegarden.org