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+$][*];
With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
|
---|
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 |
In Section
Seekers of Perl Wisdom