From: Joseph Pecoraro Date: 2007-12-18T02:51:52+09:00 Subject: Re: Backslashes in Command Line Arguments > It does get a newline character...try looking at "\n"[0] (or if you're > using 1.9, "\n".ord)...you'll notice it's the ascii ordinal 10...aka > "newline". That was Robert's point. #inspect (and by proxy #p) > represent non-printing characters as their escaped symbols so that you > can actually see them. Try entering this in irb and notice the > difference betwen the input string and that printed by #p... > It seems both of you have missed the point of my question. The input is coming into Ruby from the Command Line. Of course "\n"[0] is going to be a newline... IT is a newline. But if you read the above posts you will see what I was talking about: $ ruby example.rb "\n" Does not result in YOUR "\n", it results in "\\n" which was part of MY problem, which Sebastian showed me how to solve. I know I have the literal string referring to a Backslash N and not a Newline because I used #p... "\n" #=> newline "\\n" #=> backslash n -- Posted via http://www.ruby-forum.com/.