Takshaka
09-10-2004, 08:49 PM
I have a script which processes email and enters data into a database. The emails being processed are formatted
Field1: data
Field2: data
etc with each Field starting on a new line.
Most fields are being processed correctly but fields which run onto more than 1 line are not being correctly processed.
The code which processes the fields is
if (/Field1: /) { $field1 = $'; }
How do I change this to include data on the next line(s) or to include all data between "Field1:" & "Field2:" ?
Thanks
Field1: data
Field2: data
etc with each Field starting on a new line.
Most fields are being processed correctly but fields which run onto more than 1 line are not being correctly processed.
The code which processes the fields is
if (/Field1: /) { $field1 = $'; }
How do I change this to include data on the next line(s) or to include all data between "Field1:" & "Field2:" ?
Thanks