fix xmlout
authorminima <minima>
Wed, 11 Jan 2006 21:14:01 +0000 (21:14 +0000)
committerminima <minima>
Wed, 11 Jan 2006 21:14:01 +0000 (21:14 +0000)
perl/DXXml.pm

index 1bea12c784d38d9bda02e6cbfe1074aebb1a0312..cd8abf5965c4025b412c5956bd69356050db7e5b 100644 (file)
@@ -119,10 +119,10 @@ sub toxml
 
        unless (exists $self->{'-xml'}) {
                $self->{o} ||= $main::mycall;
-               $self->{t} ||= IsoTime::dayms();
+               $self->{t} ||= IsoTime::dayminsec();
                $self->{id} ||= nextid();
                
-               my ($name) = ref $self =~ /::(\w+)$/;
+               my ($name) = (ref $self) =~ /::(\w+)$/;
                $self->{'-xml'} = $xs->XMLout($self, RootName =>lc $name, NumericEscape=>1);
        }
        return $self->{'-xml'};