projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed geomag errors introduced last time
[spider.git]
/
perl
/
DXUtil.pm
diff --git
a/perl/DXUtil.pm
b/perl/DXUtil.pm
index 81bace8ca1271ebc45021e3175cb80edc940592a..994cdd981a735c4753aeedbedac8c46d08b1ea82 100644
(file)
--- a/
perl/DXUtil.pm
+++ b/
perl/DXUtil.pm
@@
-46,7
+46,7
@@
sub cldate
my $t = shift;
my ($sec,$min,$hour,$mday,$mon,$year) = gmtime((defined $t) ? $t : time);
$year += 1900;
my $t = shift;
my ($sec,$min,$hour,$mday,$mon,$year) = gmtime((defined $t) ? $t : time);
$year += 1900;
- my $buf = sprintf "%
0
2d-%s-%04d", $mday, $month[$mon], $year;
+ my $buf = sprintf "%2d-%s-%04d", $mday, $month[$mon], $year;
return $buf;
}
return $buf;
}
@@
-148,11
+148,9
@@
sub print_all_fields
{
my $self = shift; # is a dxchan
my $ref = shift; # is a thingy with field_prompt and fields methods defined
{
my $self = shift; # is a dxchan
my $ref = shift; # is a thingy with field_prompt and fields methods defined
- my @out = @_;
-
+ my @out;
my @fields = $ref->fields;
my $field;
my @fields = $ref->fields;
my $field;
- my @out;
foreach $field (sort @fields) {
if (defined $ref->{$field}) {
foreach $field (sort @fields) {
if (defined $ref->{$field}) {