Thank you for taking the time to reply. It has been several years since I had to write anything in Perl, so I have no idea how to apply the code that you provided. However, because you pointed me in the direction of the line endings, I tried a simpleton's approach to find out what they were. I turned on the "Show Invisibles" option in TextWrangler, where I had created the table as a .txt file after pasting entries from Excel. The lines all ended in the faucet-shaped character. (Sorry, I've forgotten what that's called.) Then I ran the script again, and it worked perfectly. I don't know why showing the line endings makes a difference, but I'll take it. I guess my script used to work because I would paste from the older version of Excel into TextWrangler, but when I had to switch to the new Excel for Mavericks, the line endings disappeared. Thanks again, and good night!
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.