in reply to Parsing and \G and /g and Stupid User Tricks
> Some of these DPFs occur because a record gets truncated, or goes beyond its length.
So, basically the length field is worthless, but always there? Why not something like this then:
$TLI = "MEH|MED|MMD|MMS|CR1|FR1"; while(m/($TLI)(....)([^$TLI]+)/g) { $error=$1; $length=$2; $text=$3; ## Do what you need with them here. +.. }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Parsing and \G and /g and Stupid User Tricks: Length Field: post v0.2
by THuG (Beadle) on Aug 08, 2000 at 20:40 UTC | |
by tye (Sage) on Aug 08, 2000 at 20:49 UTC | |
by jlistf (Monk) on Aug 08, 2000 at 20:54 UTC | |