$text =~ s/<.+?>//g; push @array, $text; #### for (@array) {print '' . $_ . ''}