X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fshow%2Fprefix.pl;h=a12903799903e01eb7b29ae0d607b7580fa41f58;hb=9bafb5297d126d00203d67addaa918c0f056d9a8;hp=9273243504e0a7b6c73b782f68addfae4546c004;hpb=bdfc958f3d0fa912d20a020ac1a6cd2c79a22729;p=spider.git diff --git a/cmd/show/prefix.pl b/cmd/show/prefix.pl index 92732435..a1290379 100644 --- a/cmd/show/prefix.pl +++ b/cmd/show/prefix.pl @@ -1,5 +1,5 @@ # -# show the dxcc number for each callsign or prefix entered +# show the prefix info for each callsign or prefix entered # # $Id$ # @@ -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 "%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(); + $l = " " x length $l; } }