2 # display the band data
4 # Copyright (c) 1998 - Dirk Koopman G1TLH
11 my ($self, $line) = @_;
12 my @f = split /\s+/, $line;
13 my @bands = grep {Bands::get($_)?$_:()} @f;
14 my @regs = grep {Bands::get_region($_)?$_:()} @f;
20 @bands = Bands::get_keys();
21 @regs = Bands::get_region_keys();
24 @bands = sort { Bands::get($a)->band->[0] <=> Bands::get($b)->band->[0] } @bands;
25 push @out, "Bands Available:-";
26 foreach my $name (@bands) {
27 my $band = Bands::get($name);
28 my $ref = $band->band;
29 my $s = sprintf "%10s: ", $name;
30 for ($i = 0; $i < @$ref; $i += 2) {
31 my $from = $ref->[$i];
32 my $to = $ref->[$i+1];
41 push @out, "Regions Available:-";
43 foreach my $region (@regs) {
44 my $ref = Bands::get_region($region);
45 my $s = sprintf("%10s: ", $region ) . join(' ', @{$ref});