in reply to Re: Creating a csv from two database tables
in thread Creating a csv from two database tables

Hi thanks for the comments, am i ok to add this if statement around the object hash (if a row contains an empty value, use the value from the next col)?

while ($row = $sth->fetchrow_arrayref()) { if (defined ($row->[2])){ $objects{$row->[0]}{$row->[1]} = $row->[2]; }else{ $objects{$row->[0]}{$row->[1]} = $row->[3]; } }

Thanks

-----

Eschew obfuscation, espouse elucidation!