projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add these back as well
[spider.git]
/
perl
/
DXHash.pm
diff --git
a/perl/DXHash.pm
b/perl/DXHash.pm
index c809dfd3c6c0cd50ca41a8fed21734696c979077..2dcb86794f65bea05fa247b4ee0f0771c4c78061 100644
(file)
--- a/
perl/DXHash.pm
+++ b/
perl/DXHash.pm
@@
-25,13
+25,20
@@
use DXDebug;
use strict;
use strict;
+use vars qw($VERSION $BRANCH);
+$VERSION = sprintf( "%d.%03d", q$Revision$ =~ /(\d+)\.(\d+)/ );
+$BRANCH = sprintf( "%d.%03d", q$Revision$ =~ /\d+\.\d+\.(\d+)\.(\d+)/ || (0,0));
+$main::build += $VERSION;
+$main::branch += $BRANCH;
+
sub new
{
my ($pkg, $name) = @_;
my $s = readfilestr($main::data, $name);
sub new
{
my ($pkg, $name) = @_;
my $s = readfilestr($main::data, $name);
- my $self = eval $s if $s;
- dbg('err', "error in reading $name in DXHash $@") if $@;
- $self = bless {name => $name}, $pkg unless $self;
+ my $self = undef;
+ $self = eval $s if $s;
+ dbg("error in reading $name in DXHash $@") if $@;
+ $self = bless({name => $name}, $pkg) unless defined $self;
return $self;
}
return $self;
}