* Philip Newton ([EMAIL PROTECTED]) [27 Sep 2000 22:51]:
> On Wed, 27 Sep 2000, iain truskett wrote:
> > Is order important for @HEADERS? Would it be better to have %HEADERS
> > instead that does such auto-formatting?
> In my opinion, no, for the reasons given before. Hashes are unordered,
> and if you want to order the keys, you need to know the possibly keys
> and in which order they come. Then, if HTTP/4.2 comes out with the
[...]
> Better to have something that's either (a) pluggable without having to
> replace all of Perl, or (b) header-agnostic, so you have to specify
> your own ordering -- which also means you *can* specify your own
> ordering.
So surely you'd want %HTTP (the input headers) to also be an array
rather than a hash, since they'd be required in order as well?
cheers,
--
iain truskett, aka Koschei. <http://eh.org/~koschei/>
The best effect of any book is that it excites the reader to self
activity. Thomas Carlyle