Front page | perl.beginners |
Postings from February 2002
Matching
Thread Next
From:
Iain Wallace
Date:
February 27, 2002 04:05
Subject:
Matching
Message ID:
000801c1bf86$9f6b0b40$626ce286@wallaceiwork
Hi,
I was wondering if any one can help me. Is there any command in perl that will let me match a line only if the next line
fufills a certain condition, without doing a double loop over the file?
My data is like this
Variable1 number number number
Variable1 number number number --- want this line
Variable2 number number number --- and this
Variable2 number number number
Does any one have any ideas ?
Thanks very much
Iain
Thread Next