If one more field from the DB would have to be added to this like including the date the account was opened, $date_opened = $pointer->{'dateopened'};
Is that the case of one of those multidimensional hash?
Printing,
Group A - Name=Mary - Date Opened 03/03/2009