From: "Dann Corbit" <[EMAIL PROTECTED]> > From: "Steve Atkins" <[EMAIL PROTECTED]> > > > > Would you care to expand on why you think this... > > > > my $row = $dbh->selectrow_hashref("select * from $table"); > > print 'foo = ', $row{'foo'}; > > > > ...is inherently a a code defect?
> There is an exception to every rule. If you need a hash for the whole > row, then you need all the columns. I think the point was that when the language/libs allow for easy reading of a row into a hash, it becomes the most natural and least error prone way. If you add or rename a column, there are fewer places in the code you need to change. gnari ---------------------------(end of broadcast)--------------------------- TIP 2: you can get off all lists at once with the unregister command (send "unregister YourEmailAddressHere" to [EMAIL PROTECTED])