in reply to Is Perl less compact than Ruby? (Kind of competition)

Oops... nothing to see here.

While I don't have time to actually play this round of golf, the perl version can definately be shortened. For instance, the while clause in the first line jumps out as being longer than necessary:

while($n<@C){$_=$C[$n++]};
Becomes:
$_=$C[$n++]while$n<@C;
Shaving 4 chars off of the total.....

-Blake

Replies are listed 'Best First'.
sorry, no
by locked_user mtve (Deacon) on Feb 18, 2002 at 19:42 UTC
    It's longer loop.