develooper Front page | perl.beginners | Postings from March 2002

A Newbie Question, Please?

March 30, 2002 14:30
A Newbie Question, Please?
Message ID:
Hi all,
I know this is a VERY basic question, but I'm learning...

I have a file I need to read with the following structure:

Line 1: URL
Line 2: Time and Date
Line 3: News Item
Line 4: Item Source
Line 5: URL
Line 6: Time and Date
Line 7: News Item
Line 8: Item Source

How do I parse it, since this is not a "regular" record-per-line file, but
rather a four-line each record?
BTW - I still will have to clean the items in each field on each line, but I
guess I'll manage to do it, if I get a hint/code/some help to get started.

Ofir Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About