projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix spotfilter
[spider.git]
/
perl
/
Prefix.pm
diff --git
a/perl/Prefix.pm
b/perl/Prefix.pm
index aac78907f49a9090565fd5081dcbbe80ce86b777..65074b83d0c5f98c01f75e877dcfd6fee9032b4f 100644
(file)
--- a/
perl/Prefix.pm
+++ b/
perl/Prefix.pm
@@
-41,7
+41,7
@@
sub init
# fix up the node's default country codes
unless (@main::my_cc) {
push @main::my_cc, (61..67) if $main::mycall =~ /^GB/;
# fix up the node's default country codes
unless (@main::my_cc) {
push @main::my_cc, (61..67) if $main::mycall =~ /^GB/;
- push @main::my_cc, qw(EA EA6 EA8 EA9) if $main::mycall =~ /^E
(ABCD)
/;
+ push @main::my_cc, qw(EA EA6 EA8 EA9) if $main::mycall =~ /^E
[ABCD]
/;
push @main::my_cc, qw(I IT IS) if $main::mycall =~ /^I/;
push @main::my_cc, qw(SV SV5 SV9) if $main::mycall =~ /^SV/;
push @main::my_cc, qw(I IT IS) if $main::mycall =~ /^I/;
push @main::my_cc, qw(SV SV5 SV9) if $main::mycall =~ /^SV/;
@@
-85,6
+85,11
@@
sub load
return $out;
}
return $out;
}
+sub loaded
+{
+ return $db;
+}
+
sub store
{
my ($k, $l);
sub store
{
my ($k, $l);
@@
-468,6
+473,16
@@
sub to_ciz
return @out;
}
return @out;
}
+# get the full country data (dxcc, itu, cq, state) as a list
+# from a callsign.
+sub cty_data
+{
+ my $call = shift;
+
+ my @dxcc = extract($call);
+ return @dxcc ? ($dxcc[1]->dxcc, $dxcc[1]->itu, $dxcc[1]->cq, $dxcc[1]->state) : ();
+}
+
my %valid = (
lat => '0,Latitude,slat',
long => '0,Longitude,slong',
my %valid = (
lat => '0,Latitude,slat',
long => '0,Longitude,slong',