projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add sh/mydx alias to allow filtered spots
[spider.git]
/
perl
/
Prefix.pm
diff --git
a/perl/Prefix.pm
b/perl/Prefix.pm
index 91f7c5cee44a3753cf90256ca565f007c16d033e..65074b83d0c5f98c01f75e877dcfd6fee9032b4f 100644
(file)
--- a/
perl/Prefix.pm
+++ b/
perl/Prefix.pm
@@
-473,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',