On Wed, 11 Jun 2003, Joseph Brennan wrote: > I want the html part after decoding of base64 and qp. I don't > necessarily want to rewrite the part, just see what's in it. Here's one way to do it: if ($io = $entity->open("r")) { while (defined($_ = $io->getline)) { # Do something with the line $_ } $io->close; } Regards, David.