in reply to Re: Parsing a text file
in thread Parsing a text file

Nope, don't want to print anything actually. I put a $verbose variable in there to turn on messages but for the most part,we want this to run silent. (until it breaks)

as for preprocessing to get rid of the ^M's, that is a thought but I hate to call external (possibly missing) programs to do something that perl can/should handle natively.

Replies are listed 'Best First'.
Re^3: Parsing a text file
by juster (Friar) on Jan 14, 2009 at 05:43 UTC

    You can preprocess it easily with perl:

    shell$ perl -pe 'tr/\r/\n/' infile > outfile