my (@rows) = split(/\n/, $data); my $number_of_rows = @rows;