From: Joseph Pecoraro Date: 2007-12-18T02:05:14+09:00 Subject: Re: Backslashes in Command Line Arguments > No, it's because you are using p instead of puts. > > The p method prints the result of sending the inspect message to its > argument, and String#inspect produces a what ruby string literal to > represent the string looks like, and since \ is the escape character > in ruby string literals it needs to be escaped itself in the output > of inspect. > > -- > Rick DeNatale I purposely used p instead of puts for that exact reason. Which is how I noticed that if you send "\n" Ruby does not get a newline character, it gets a backslash n literal. Joe -- Posted via http://www.ruby-forum.com/.