Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^2: Adaptive parser for tab delimited text file

by choroba (Abbot)
on Nov 01, 2012 at 13:06 UTC ( #1001821=note: print w/ replies, xml ) Need Help??


in reply to Re: Adaptive parser for tab delimited text file
in thread Adaptive parser for tab delimited text file

Your code does not handle the empty fields correctly. KOFFSETP is always 0 in the data, but is 3 in your output.

لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ


Comment on Re^2: Adaptive parser for tab delimited text file
Re^3: Adaptive parser for tab delimited text file
by roboticus (Canon) on Nov 01, 2012 at 13:24 UTC

    choroba:

    Thanks, I didn't notice. I think I'll leave it alone, though, as you've already posted a working one, and it's only a proof-of-concept anyway.

    ...roboticus

    When your only tool is a hammer, all problems look like your thumb.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1001821]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (14)
As of 2014-11-28 15:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (197 votes), past polls