X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fshow%2Froute.pl;h=768c3961e7976e0113db2d530961db3975746a08;hb=0e26aa78a0b6a5dbcdf780a406335e94ddcd2f93;hp=d055e61694a01995f9245395fc42651545917bcc;hpb=59e7157e3e342e629b1badcf1ba7d992b58a5caf;p=spider.git 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);