From: 7stud -- Date: 2012-12-21T16:38:07+09:00 Subject: Re: Perl to Ruby: regex captures to assignment. Derrick B. wrote in post #1089779: > > Why is it that when I try to add > a comment after a line continuation backslash, Ruby says: > > ./ratnum.rb:14: syntax error, unexpected $undefined > n = ( w == w.abs ) ? \ # > ^ > ./ratnum.rb:15: syntax error, unexpected ':', expecting keyword_end > > Ruby should respect my need for comments! :) > See if you can make sense of this line: result = true ? \ n #your comment "true value" : "false value" -- Posted via http://www.ruby-forum.com/.