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
$/ = "¬";
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
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