I once liked Perl a lot but find Ruby to be better. You can still essentially write Perl syntax if you want, but Ruby's built-in classes organize Perl's built-in functions (and many more) in a way that makes it trivial to know where to look up the method you need -- no more "in scalar context, function foo does this, in array context, it does that".
If that was all there was to Ruby it'd be enough to warrant a look by Perl coders, but there's so much more good stuff (the language creator's goal is to make programming enjoyable) like mix-ins and metaprogramming, all readable and easily understandable.
I'd take Perl over Python most any day, but Ruby over Perl any day at all.
Discussion on:
Message 23 of 56

































