my $t = shift;
my ($sec,$min,$hour,$mday,$mon,$year) = gmtime((defined $t) ? $t : time);
$year += 1900;
- my $buf = sprintf "%02d-%s-%04d", $mday, $month[$mon], $year;
+ my $buf = sprintf "%2d-%s-%04d", $mday, $month[$mon], $year;
return $buf;
}
{
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 @out;
foreach $field (sort @fields) {
if (defined $ref->{$field}) {