On Thu, 27 Apr 2006 dblack / wobblini.net wrote:

> Hi --
>
> On Thu, 27 Apr 2006, James Edward Gray II wrote:
>
>> On Apr 26, 2006, at 4:31 PM, Jake McArthur wrote:
>> 
>>> More powerful than Perl (IMHO), but not as concise.
>> 
>> Could you given a small example program in Perl that is lengthier in Ruby? 
>> (Just curious.)
>
> s/// stuff is shorter than sub(//,'') stuff.

plus


   @P=split//,".URRUU\c8R";@d=split//,"\nrekcah xinU / lreP rehtona tsuJ";sub p{
   @p{"r$p","u$p"}=(P,P);pipe"r$p","u$p";++$p;($q*=2)+=$f=!fork;map{$P=$P[$f^ord
   ($p{$_})&6];$p{$_}=/ ^$P/ix?$P:close$_}keys%p}p;p;p;p;p;map{$p{$_}=~/^[P.]/&&
   close$_}%p;wait until$?;map{/^r/&&<$_>}%p;$_=$d[$q];sleep rand(2)if/\S/;print


is w_a_a_a_y shorted than the equivalent ruby.

   http://perl.plover.com/obfuscated/

;-)

-a
-- 
be kind whenever possible... it is always possible.
- h.h. the 14th dali lama