my @array= ($slno, $testid, $status); $array_ref = \@array; $worksheet->write_row($row, $col, $array_ref);