Since I use Windows, I tried using a dos2unix program to remove the carriage returns and my code failed.. It doesn't matter anymore though because I figured out a different character that I can use instead of a newline.
Most good text editors (E, TextPad, Notepad++, etc) allow you to choose whether you want to save your file with Unix or DOS style line endings. Using Unix style endings will help, even if you usually use ';' to separate commands. Here is why:
When you need to insert a newline into a string, the best way in ruby is to actually have a literal newline in it:
# This snippet: $><<". Take one down and pass it around, "
# is one byte shorter than this snippet: $><<".\nTake one down and pass it around, "
This saves a byte if you're using Unix style line endings.