X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fshow%2Fprefix.pl;h=d1cdcbfeec1de782a687370b3682a019c44d4ce7;hb=337f38bfac57a5e5df34c63094fb869b0e2f6bee;hp=9273243504e0a7b6c73b782f68addfae4546c004;hpb=bdfc958f3d0fa912d20a020ac1a6cd2c79a22729;p=spider.git diff --git a/cmd/show/prefix.pl b/cmd/show/prefix.pl index 92732435..d1cdcbfe 100644 --- a/cmd/show/prefix.pl +++ b/cmd/show/prefix.pl @@ -10,15 +10,16 @@ my @list = split /\s+/, $line; # generate a list of callsigns my $l; my @out; -print "line: $line\n"; +#print "line: $line\n"; foreach $l (@list) { my @ans = Prefix::extract($l); - print "ans:", @ans, "\n"; + #print "ans:", @ans, "\n"; next if !@ans; my $pre = shift @ans; my $a; foreach $a (@ans) { - push @out, sprintf "%s DXCC: %3d ITU: %3d CQ: %3d (%s, %s)", uc $l, $a->dxcc(), $a->itu(), $a->cq(), $pre, $a->name(); + push @out, sprintf "%-9s DXCC: %3d ITU: %3d CQ: %3d (%s, %s)", uc $l, $a->dxcc(), $a->itu(), $a->cq(), $pre, $a->name(); + $l = ""; } }