Re: Text file parsing - one chunk v char by char

2001-07-05 Thread Mike Breeze
Very nice! I love Perl:) Cheers Ken, Breezy Ken wrote: > $/ = "¬"; > > Then while() will only bring in each record. > > - Original Message - > From: "Mike Breeze" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Thursday, July 05, 2001 1:23 PM > Subject: Text file parsing - one ch

Re: Text file parsing - one chunk v char by char

2001-07-05 Thread Ken
$/ = "¬"; Then while() will only bring in each record. - Original Message - From: "Mike Breeze" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, July 05, 2001 1:23 PM Subject: Text file parsing - one chunk v char by char > Hi there, > > I'm writing some code that has to pa

Re: Text file parsing - one chunk v char by char

2001-07-05 Thread Chas Owens
If "¬" is the record seperator then use the record seperator variable ($/) to get the individual records: {#create a new scope to prevent changes from effecting everthing else local ($/) = "¬"; while () { chomp; #get rid of "¬" on the end; do_someth