RE: Perl equivalent to awk's 'getline'

2001-08-09 Thread Bob Showalter
> -Original Message- > From: Frank Newland [mailto:[EMAIL PROTECTED]] > Sent: Thursday, August 09, 2001 12:35 PM > To: [EMAIL PROTECTED] > Subject: Perl equivalent to awk's 'getline' > > > Readers: > awk has a function called 'getline&#

Re: Perl equivalent to awk's 'getline'

2001-08-09 Thread Adam Turoff
On Thu, Aug 09, 2001 at 11:35:13AM -0500, Frank Newland wrote: > Readers: > awk has a function called 'getline' which reads the next line of input > without changing control of the script. Perl is unlike sed and awk in this respect; program control is not determined by reading sequential lines

Re: Perl equivalent to awk's 'getline'

2001-08-09 Thread Peter Scott
At 11:35 AM 8/9/01 -0500, Frank Newland wrote: >Readers: >awk has a function called 'getline' which reads the next line of input >without changing control of the script. > >My input file contains pairs of records. When I find a record that matches >my search pattern, I want that record and the ne

Perl equivalent to awk's 'getline'

2001-08-09 Thread Frank Newland
Readers: awk has a function called 'getline' which reads the next line of input without changing control of the script. My input file contains pairs of records. When I find a record that matches my search pattern, I want that record and the next record. In awk, I used the 'getline' which did ju