From: khaines@... Date: 2006-10-21T06:42:32+09:00 Subject: Re: Ruby and Perl On Sat, 21 Oct 2006, Li Chen wrote: > Hi guys, > > I teach myself some Perl before I change to Ruby. I am just curious: If > I use the same algorithm to write a Perl and Ruby script, respectively, > which one will run faster? Since everyting in Ruby is object or > reference to an object the script written by Ruby should run faster than > that in Perl's. > Am I right? No. If you're looking for a general trend, the trend will be that the Ruby code will maybe be shorter (if you try to write readable Perl instead of line noise Perl, it'll be shorter), it will be far more readable, and it'll run more slowly. There are exceptions, but that will be the observed trend. Kirk Haines