From: "Derrick B." Date: 2012-12-23T02:15:25+09:00 Subject: Re: Perl to Ruby: regex captures to assignment. 7stud -- wrote in post #1089925: >> Also, I am still trying to wrap my head around the line terminating >> error I showed you. > > Explain in detail what you think a \ at the end of the line does? Well, > maybe we need to get more basic than that: Do you know what a newline > is? My understanding, from a C/C++ background, is that the '\' allows for continuation of the current line. Combine that with my knowledge of comments (// and /* */ in C/C++) should allow for anything following that to be "ignored". Perl does not behave as Ruby did when I did the very same thing. So, maybe I took my assumption of those to personal ideas and definitions and expected too much from Ruby? I so also understand that the '\' is an escape character to allow for various things to happen: newlines, tabs, characters to have different meanings in strings, etc... So, please enlighten me as to your definition, or a link to an official definition of a newline, line continuation indicator, and anything else that would be useful. Thanks, Derrick -- Posted via http://www.ruby-forum.com/.