| 1 | # Copyright (C) 2008 Wes Hardaker | ||
| 2 | # License: Same as perl. See the LICENSE file for details. | ||
| 3 | package Ham::Callsign::Display::Dump; | ||
| 4 | |||
| 5 | use Ham::Callsign::Base; | ||
| 6 | use Ham::Callsign; | ||
| 7 | our @ISA = qw(Ham::Callsign::Base); | ||
| 8 | |||
| 9 | use strict; | ||
| 10 | |||
| 11 | sub display { | ||
| 12 | my ($self, $callsigns) = @_; | ||
| 13 | |||
| 14 | # this allows array refs to be given with multiple calls... | ||
| 15 | foreach my $callsign (@$callsigns) { | ||
| 16 | print "Data for $callsign->{thecallsign} in $callsign->{FromDB}:\n"; | ||
| 17 | foreach my $key (keys(%$callsign)) { | ||
| 18 | printf(" %-30.30s %s\n", $key . ":", $callsign->{$key}) | ||
| 19 | if ($callsign->{$key}); | ||
| 20 | } | ||
| 21 | } | ||
| 22 | } | ||
| 23 | |||
| 24 | 1; |