It looked to me like
submersible_toaster answered your question. There is no way to get two hashrefs out of a single DBI query, so you have to divide it up later. Hash slices are the cleanest way to divide up a hash, as he shows in his example. They are the hash version of saying
@array[0,1].