Re: Data file with records that span two lines

2010-01-22 Thread Perl Noob
> On 1/20/2010 8:28 PM, Perl Noob wrote: >> You can tell from my initial request that I have some knowledge. An >> expert? No. But not an novice either. I had no real knowledge of >> the >> <> until it was introduced to me on this list. I did find out what

Re: Data file with records that span two lines

2010-01-20 Thread Perl Noob
>>>>>> "PN" == Perl Noob writes: > > >> On Jan 19, 12:01 pm, dery...@gmail.com (C.DeRykus) wrote: > >>> On Jan 18, 9:09 pm, perln...@tragic.pointyhats.com (Perl Noob) > >>> wrote: > >>> > ... > >>

Re: Data file with records that span two lines

2010-01-20 Thread Perl Noob
> On Jan 19, 12:01 pm, dery...@gmail.com (C.DeRykus) wrote: >> On Jan 18, 9:09 pm, perln...@tragic.pointyhats.com (Perl Noob) >> wrote: >> > ... >> >>  perl -ne '$_ .= <>;s/\n//;print' infile > outfile >> > > Even easier: pe

Re: Data file with records that span two lines - REVISITED

2010-01-19 Thread Perl Noob
> On 1/19/2010 12:09 AM, Perl Noob wrote: >> I have a data file with thousands of records. The problem is that >> the >> records in the data file span two lines for each record. I want to >> write a perl script that makes each record a single line.

Re: Data file with records that span two lines

2010-01-19 Thread Perl Noob
> On Tue, Jan 19, 2010 at 08:12:25AM -0500, Perl Noob wrote: >> > 在 2010-01-19二的 00:09 -0500,Perl Noob写道: >> >> I have a data file with thousands of records. The problem is >> that >> >> the >> >> records in the data file span

Re: Data file with records that span two lines

2010-01-19 Thread Perl Noob
> 在 2010-01-19二的 00:09 -0500,Perl Noob写道: >> I have a data file with thousands of records. The problem is that >> the >> records in the data file span two lines for each record. I want to >> write a perl script that makes each record a single line. The file >> looks like this: >> >

Data file with records that span two lines

2010-01-18 Thread Perl Noob
I have a data file with thousands of records. The problem is that the records in the data file span two lines for each record. I want to write a perl script that makes each record a single line. The file looks like this: RECORD1FIELD1 RECORD1FIELD2 RECORD1FIELD3 RECORD1FIELD3 RE