PDA

View Full Version : paging perl


cgibie
01-14-2006, 08:11 PM
I have a text file that has following content,

Date: December 25, 2005
Title: Xmas
Content: blah blah

Date: December 30, 2005
Title: New Year
Content: blah blah.

My question is, how can I read from that text file, and seperate the contents of the file into seperate pages? For instance, the first page would be:
Date: December 25, 2005
Title: Xmas
Content: blah blah

when the user clicks on the number "2", it will take them to another page that has:
Date: December 30, 2005
Title: New Year
Content: blah blah.

I was wondering if Perl can achieve this without having to make seperate HTML pages.