in reply to Why is this program producing blank lines when parsing a file

I'm gonna make a huge assumption here - you're outputing to a browser - if so, amend to:
while (<LOGDATA>) { $logline=$_; $logline =~ s/</&lt;/g; $logline =~ s/>/&gt;/g; print ("The whole line is ---> ",$logline); }

As for recommendations, why not search CPAN for XML parsing modules, eh?

.02

cLive ;-)

--
seek(JOB,$$LA,0);

Replies are listed 'Best First'.
Re: Re: Why is this program producing blank lines when parsing a file
by vonman (Acolyte) on May 20, 2002 at 22:01 UTC
    You're my hero!!!!. Yup I am outputting directly to html. Couldnt understand why this simple prog wouldnt work. Now it makes complete sense. Thanks again. PS. If anyone has any experience and recommendations with respect to the available CPAN modules please let me know.