in reply to Re: odd behavior with DATA section
in thread odd behavior with DATA section
The original list of files and directory structures (with the not-so-innocent names) was created by someone else in Excel. I copied the data to emacs where I created the script. For the innocently named script I copied the source code, then typed the DATA lines by hand, still in emacs. So no possiblities of pasting odd characters in there. For the OS X test I copied the source code and DATA from Perlmonks into emacs.
So the short story is that I'm fairly sure that the line endings are correct for the operating system under test.
But all that being said, I would not be too surprised to learn that your suspicions are accurate. I just double checked the output of the script, and noticed that the DATA line errors occur on lines 2, 4, 6, et cetera. Yet what I would expect to be line 2 in the DATA section worked fine.
Of course now that I'm home I don't have the original script files, so I'll have to triple check line endings when I go back to work on Monday. Thanks for the input.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: odd behavior with DATA section
by TilRMan (Friar) on Jul 23, 2005 at 06:52 UTC | |
by Nkuvu (Priest) on Jul 25, 2005 at 17:30 UTC | |
|
Re^3: odd behavior with DATA section
by digiryde (Pilgrim) on Jul 24, 2005 at 03:16 UTC |