Field of Science

As usual, the Perl problem was the line feeds

Somehow, in being emailed to me, the USSv4a.pl and settings.txt files both acquired nasty Mac carriage returns instead of nice well-behaved Unix line feeds. This kind of problem has arisen often enough in the past that I knew to suspect it, but I had to figure out how Komodo deals with line feed issues before I could confirm that this was the problem and correct it.

Now the program runs fine, but it prints some reporting lines probably created by the undergrad while he was debugging the new bells and whistles....

...Three hours later.... I've found, understood and removed the unwanted reporting lines, and found and fixed a big mistake in how the program decided whether it was time to print out a report. And found and fixed several minor problems....

1 comment:

  1. Good debugging job! And well done for having a "linefeed hunch"; that kind of skill comes with more exposure to programming. Of all the inter-operability issues, different line endings in Mac, Unix and Windows is surely the silliest.

    Linux/unix has a command-line tool called flip, which I expect can be obtained for OS X. Not to pimp emacs again, but it also handles line ending interconversion quite well.

    ReplyDelete

Markup Key:
- <b>bold</b> = bold
- <i>italic</i> = italic
- <a href="http://www.fieldofscience.com/">FoS</a> = FoS