So it looks like I was maybe blurring the plot lines between reality (Star Trek) and science fiction (5th Element).
No, I think there's gotta be a Trek episode like that. I, too, have the same fuzzy recollection. I could swear it was the one with the giant space amoeba.
_________________________
Tony Fabris