Hey there! I am working on a new website, and one of it's main components is the news section. I am trying to get the whole section to run through pearl, so to access an article, you would type in an address such as: "news.pl?article=06_10_2000_Title_Goes_Here"

The script would then use then open up a text file with the same name (06_10_2000_Title_Goes_Here.txt). SO far, I this all works fine, but here is the problem.

Inside the text file containing the news article, I want it to contain info such as:

Title Date Category Keywords Descrition Article (This point Forward)

This way, I can use another script to search throught the text files and more. Although, how can I get the script to know where the actual article begins? Can i say something like "From line 10 on is the article?" Any iideas? Thanks!

I use this all the time: In the article file put something like <!--BEGIN ARTICLE--> Then as you step through the lines of the article to get the other info, be searching for that exact comment string. Even if it gets served to the browser it will only be an HTML comment.

Thanks Monocle! So, let's say I have a news file that looks like this:

New Jersey Wins Stanley Cup June 10, 2000 Sports: Hockey hockey, new jersey, stanley cup <!-- Article 001 --> Last night the New Jersey Devils won the final game in the Stanely Cup playoffs against the Dallas Stars...

How do I let my perl script know that the aticle starts at the line with the <!-- Article 001 -->? Thanks again!

Everything works great now. Thanks so much! Although, one final question... when the script takes my news article and prints it into the news page, it double spaces the article in the HTML code... any idea how to get rid of that? Thanks!