Re: Tie hashes in DBIx::Recordset [OT]

2002-03-13 Thread Ged Haywood
Hi there, On Wed, 13 Mar 2002, Marcus Claesson wrote: How do I succesfully preserve the column order (''$fields'= $joined_col') in my array-of-hashes generated using DBIx::Recordset? Check out a Perl tutorial or the Camel book. Perl's hashes do their own thing with ordering, so unless you

Re: Tie hashes in DBIx::Recordset [OT]

2002-03-13 Thread Marcus Claesson
Perl's hashes do their own thing with ordering, so unless you do something like (sort keys %hash) you will get what you get. Yes, but tieing the hash while creating it, in my case with Tie::IxHash, should preserve the inesertion order. That works with for example tie %hash, 'Tie::IxHash'; %hash

RE: Tie hashes in DBIx::Recordset [OT]

2002-03-13 Thread Jeff
-{NAME_lc} is not always populated, depending upon your SQL. Regards Jeff -Original Message- From: Ged Haywood [mailto:[EMAIL PROTECTED]] Sent: 13 March 2002 10:30 To: Marcus Claesson Cc: [EMAIL PROTECTED] Subject: Re: Tie hashes in DBIx::Recordset [OT] Hi there, On Wed, 13 Mar 2002