in reply to Re^4: Reading tab/whitespace delimited text file
in thread Reading tab/whitespace delimited text file
Because in order to find the length of each field in this crazy format, it relies on the length of the header field to determine the length of the value fields.
But, (uniquely) in the case of:
CELL LUC325C
The header field is shorter than the value field.
And as that record pair was not a part of the sample you showed when you originally asked this question, the code does not cater for it.
Adding this line to the code above will allow it to handle that part of the data format:
$tmpl =~ s[\d+$][*];
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Reading tab/whitespace delimited text file
by reaper9187 (Scribe) on Nov 02, 2012 at 10:57 UTC | |
by BrowserUk (Patriarch) on Nov 02, 2012 at 11:04 UTC | |
by reaper9187 (Scribe) on Nov 04, 2012 at 19:18 UTC | |
by BrowserUk (Patriarch) on Nov 05, 2012 at 11:56 UTC | |
by Anonymous Monk on Nov 05, 2012 at 01:25 UTC |