From: "Jack W." Date: 2011-03-24T05:52:58+09:00 Subject: Re: Converting PHP to Ruby If you'd like, here's an updated code with real variable names and some comments. And one more question, how do I make one line statements in Ruby? I would do like this in PHP. $animal = "cat"; print $animal=="cat" ? "yes" : "no"; //Would print yes Sorry for the noob questions! Attachments: http://www.ruby-forum.com/attachment/6066/caesarCiper.rb -- Posted via http://www.ruby-forum.com/.