$worksheet->Range("B5:C6")->{Value} = \@matrix; #####################################^^^