in reply to Is there a cleaner way to write this code below, which includes derferencing references, that themselves have to be dereferenced?

I may be missing something but you can get DBI to do all this work for you. Using selectall_arrayref() with the 'Slice' option will return an array reference of hash references the same as your return \@ticketsRecords:
### execute command ### get the data my $data = $db->selectall_arrayref( $dbCommand, { Slice => {} } ); return $data;
  • Comment on Re: Is there a cleaner way to write this code below, which includes derferencing references, that themselves have to be dereferenced?
  • Select or Download Code