in reply to Re: Parsing a text file
in thread Parsing a text file
1. I have made this change even though I had this part working merely because you are right and ^M's don't always behave the way one would expect.
2. Also added this change even though I know it was not failing to open the csv file as it was printing the contents. Suffice it to say that it is a good coding practice that I usually use. I just whipped up an example script for perlmonks.org to show my problem.
3. Must have the for loop as the ^M's are delineating lines of data. Throwing away anything after a ^M is throwing away data I need.
4. You are right, in this particular example I am not using the passed variable name. It's just a habit
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Parsing a text file
by gone2015 (Deacon) on Jan 14, 2009 at 08:56 UTC |