58623cdba877362c16f5941f8a4ac8c2bd691511
[spider.git] / cmd / stat / pc19list.pl
1 #
2 # list out the PC19s that are outstanding (for which PC16s have not been seen)
3 #
4 # Copyright (c) 2003 Dirk Koopman G1TLH
5 #
6 # $Id$
7 #
8
9 my $self = shift;
10 return (1, $self->msg('e5')) unless $self->priv >= 9;
11
12 my @patt = map {"^\Q$_"} split /\s+/, uc shift;
13 my @out;
14
15 foreach my $k (sort keys %DXProt::pc19list) {
16         if (!@patt || grep $k =~ /$_/, @patt) {
17                 my $nl = $DXProt::pc19list{$k};
18                 push @out, "$k: " . join (', ', map {"via $_->[0]($_->[1] $_->[2])"} @$nl);
19         }
20 }
21
22 return (1, @out);
23