Think about Loose Coupling | |
PerlMonks |
Re: line ending problem Text::CSV alternative Text::ParseWords?by ELISHEVA (Prior) |
on Oct 06, 2009 at 11:28 UTC ( [id://799441]=note: print w/replies, xml ) | Need Help?? |
What happened with your first code sample? Did it also stop on the first line? I see you are only using strict, not warnings. Diagnostics does not turn on warnings automatically. When you add use warnings, what do you see? Do you get any warnings? What diagnostics print out with them? If you really have a problem with line endings it should be obvious in your loops. In the first bit of code, what happens if you include the line local $"='|'; print STDERR "<@$row>\n" at the top of the while loop in the first example? If you include print STDERR "<$line>\n"., what happens? In the two print statements, you'll note that I sent output to STDERR. This is to make the debugging statements easier to find when you are ready to comment them out or delete them. I also surrounded the variable I wanted to print with "<...>" and changed the separator between array elements in a string to a pipe ('|'). This is done so that the presence of whitespace is more obvious. Best, beth
In Section
Seekers of Perl Wisdom
|
|