in reply to use of DBI perl function fetchall_arrayref

[$sql_return] creates another reference to an array containing the array of arrays. You want @$sql_return instead. See References quick reference.