Re: tie hashes in DBIx::Recordset

2002-03-14 Thread Gerald Richter
> I can't find and implement the method Fields as you mentioned, Oops, my fault, it's called Names e.g. to print out the value in the right order do $fields = $set -> Names ; foreach $f (@$fields) { print $set{$f} ; } Gerald -

Re: tie hashes in DBIx::Recordset

2002-03-14 Thread Marcus Claesson
I can't find and implement the method Fields as you mentioned, only the parameters !Fields and $Fields, the latter which I already use. My *set consists of an array-of-hashes, where the length and content of both the array and hashes vary from time to time. My goal is to have the same column order

Re: tie hashes in DBIx::Recordset

2002-03-13 Thread Gerald Richter
Hi, > How do I succesfully preserve the column order (''$fields'=> > $joined_col') in my array-of-hashes generated using DBIx::Recordset? > When I run the code below, the column order doesn't differ at all from > when I don't 'tie' the %main::set hash. I don't expect Tie::IxHash to work in the co

tie hashes in DBIx::Recordset

2002-03-12 Thread Marcus Claesson
Hi, How do I succesfully preserve the column order (''$fields'=> $joined_col') in my array-of-hashes generated using DBIx::Recordset? When I run the code below, the column order doesn't differ at all from when I don't 'tie' the %main::set hash. /Marcus ___ use Tie::IxHash; use DBIx