use CGI; my $query = new CGI; my $long_text_field = $query->param('long_text_field'); my @BR_paths = split /\n/, $long_text_field;