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

A Newbie Question, Please?

From:
Ofir
Date:
March 30, 2002 14:30
Subject:
A Newbie Question, Please?
Message ID:
001c01c1d842$eb7ccb70$5597003e@ofiru9jv0ylyde
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.

TIA!
Ofir






nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About