sub printRow{ #input the row number print Dumper(@_); } # and later: &printRow(@d_array); #### $d_array[$line_number]= [@field];