
BrightNail
Novice
Jul 27, 2001, 11:41 AM
Post #1 of 6
(2274 views)
|
a line as a seperator, how..not pipes or tabes,
|
Can't Post
|
|
Hey, this is somewhat similiar to my other post. I have a list of names with addresses (an entry), each entry is seperated by a long line ala... _______________________________ now, I have around 15-20 entries per file. So, I want to split at the long line and then funnel each address and name on its own line in a textfile...each individual entry seperated by a pipe. so..... ___________________________ John Doe 1234 Somewhere Lane Brockton, Ma. 01149 www.blahblahblah.whatever would read into the flat like this John Doe | 1234 Somewhere Lane | Brockton, Ma | www.blahblahbalh.whatever on its own line.........basically, after the perl script reads in the text file I supply (and if there are 15 entries per file),,then the new flatfile created would have 15 lines of addresses and name...does that make sense. I just don't know how to break on that long line and disregard it, and use the contents after it until the next line etc.... thanks a bunch
|