Re: Forcing order

2006-03-10 Thread Ron Smith
--- Chris Devers <[EMAIL PROTECTED]> wrote: > On Thu, 9 Mar 2006, Ron Smith wrote: > > > How can I assure printing the correct order? > > You can't guarantee the order of keys in a hash per > se. For efficiency > and optimization, hashes are stored in a random > order, unlike arrays, > which d

Re: Forcing order

2006-03-09 Thread Chris Devers
On Thu, 9 Mar 2006, Ron Smith wrote: > How can I assure printing the correct order? You can't guarantee the order of keys in a hash per se. For efficiency and optimization, hashes are stored in a random order, unlike arrays, which do have a straightforward order. The trick then is to sort the

Forcing order

2006-03-09 Thread Ron Smith
Hi all, I need a little insight on the following code, as I learn the CGI module. What's happening is, as the output to web page increases, with the number of entries, the order in which values are entered rearranges itself, when printing to the page. How can I assure printing the correct order?