From: 7stud -- Date: 2012-12-22T04:35:03+09:00 Subject: Re: Perl to Ruby: regex captures to assignment. Derrick B. wrote in post #1089885: > 7stud -- wrote in post #1089800: > >> See if you can make sense of this line: >> >> result = true ? \ n #your comment "true value" : "false value" >> >> which is equivalent to: >> >> result = true ? \ n > > I can see that, but it is still odd. It is not odd. You just don't understand what escaping a newline does. In my code that is not a \n --- it's a \ followed by a space followed by an n. That's essentially what escaping a \n does. -- Posted via http://www.ruby-forum.com/.