From: 7stud -- Date: 2012-12-24T07:18:31+09:00 Subject: Re: Perl to Ruby: regex captures to assignment. Derrick B. wrote in post #1089990: > > Perl does just fine without the slash: > > $n = ( $w == abs($w) ) > ? $n + $w * $d > : -1 * ( $n - $w * $d ) if $d; > > And you have no idea why that is? The perl parser knows that a statement has ended when it sees a semi-colon. -- Posted via http://www.ruby-forum.com/.