howdthattaste
Programmer
hello,
i have an interesting question, which, knowing perl, is probably summed up in nice easy to implement function already hammered out ages ago.
the question (which isn't that helpful at first) is: how do i match on multiple lines?
for example if we have the lines:
(obviously, you browser wrapping could make this look weirder, try to maxize to get the full effect)
As we can see the provider has supplied a line number sequence and has also shown that lines start and end with brackets. i want to read through this file and strip out the 'complete' lines... meaning the source file provided 4 lines of data, but in reality, there are only 3. I just want the 3, without the sequence number.
Can anyone help?
i step through files like this:
...but since the data i need to process is split amongst two lines, how can i get them together?
ps. there is newline character at the end of each line in the source file.
----------------------------------
"Not New York..., Kansas
i have an interesting question, which, knowing perl, is probably summed up in nice easy to implement function already hammered out ages ago.
the question (which isn't that helpful at first) is: how do i match on multiple lines?
for example if we have the lines:
Code:
0001233 - [this is text which fits on one line]
0001234 - [this is text which has a really really long sentence and
0001235 - wraps to the next line]
0001236 - [another line that doesn't wrap]
...
As we can see the provider has supplied a line number sequence and has also shown that lines start and end with brackets. i want to read through this file and strip out the 'complete' lines... meaning the source file provided 4 lines of data, but in reality, there are only 3. I just want the 3, without the sequence number.
Can anyone help?
i step through files like this:
Code:
while(<FILE>)
{
do some processing on $_
print some output
}
ps. there is newline character at the end of each line in the source file.
----------------------------------
"Not New York..., Kansas