From: dirk Date: Tue, 24 Jun 2008 23:02:59 +0000 (+0100) Subject: add ... for more than 4 routes in sh/route X-Git-Tag: 1.56~77 X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=0e26aa78a0b6a5dbcdf780a406335e94ddcd2f93;p=spider.git add ... for more than 4 routes in sh/route --- diff --git a/cmd/show/route.pl b/cmd/show/route.pl index d055e616..768c3961 100644 --- a/cmd/show/route.pl +++ b/cmd/show/route.pl @@ -18,7 +18,7 @@ foreach $l (@list) { if ($ref) { my $parents = $ref->isa('Route::Node') ? $l : join(',', $ref->parents); my @n = map { $_->[1]->call . '(' . (100 - $_->[0]) . ')' } Route::findroutes($l); - @n = @n[0,1,2,3],'...' if @n > 4; + @n = (@n[0,1,2,3],'...') if @n > 4; push @out, $self->msg('route', $l, $parents, join(',', @n)); } else { push @out, $self->msg('e7', $l);