$logtype = ${$singlefilter}[0]; # is the same as $logtype = $singlefilter[0]->[0]; # is the same as $logtype=$singlefilter[0][0];