X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fshow%2Fprefix.pl;h=0d46bb6a2cb4bccf4c5aa8d0c5000c00c926358f;hb=535e44d1449d219bb8479d6f824118e3b31dde7a;hp=1689d63a9d213ad01916f8063cf66b5e4704b7f6;hpb=157f14220c0cbc875729be41a3e3a2acd18f51e1;p=spider.git diff --git a/cmd/show/prefix.pl b/cmd/show/prefix.pl index 1689d63a..0d46bb6a 100644 --- a/cmd/show/prefix.pl +++ b/cmd/show/prefix.pl @@ -20,12 +20,13 @@ foreach $l (@list) { my $pre = shift @ans; my $a; foreach $a (@ans) { - push @out, sprintf "%s DXCC: %d ITU: %d CQ: %d LL: %s %s (%s, %s)", uc $l, $a->dxcc, $a->itu, $a->cq, slat($a->lat), slong($a->long), $pre, $a->name; + push @out, substr(sprintf("%s CC: %d IZ: %d CZ: %d LL: %s %s %4.4s (%s, %s", uc $l, $a->dxcc, $a->itu, $a->cq, slat($a->lat), slong($a->long), $a->qra, $pre, $a->name), 0, 78) . ')'; $l = " " x length $l; } if ($USDB::present && $ans[0]->state) { push @out, sprintf "%s City: %s State: %s", $l, join (' ', map {ucfirst} split(/\s+/, lc $ans[0]->city)), $ans[0]->state; } + } return (1, @out);