projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added spaces back in for clx
[spider.git]
/
perl
/
DXHash.pm
diff --git
a/perl/DXHash.pm
b/perl/DXHash.pm
index c809dfd3c6c0cd50ca41a8fed21734696c979077..54faad9bf4d586b0ddb79e63793f6cbe96c978f4 100644
(file)
--- a/
perl/DXHash.pm
+++ b/
perl/DXHash.pm
@@
-25,12
+25,18
@@
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;
+$main::build += $VERSION;
+$main::branch += $BRANCH;
+
sub new
{
my ($pkg, $name) = @_;
my $s = readfilestr($main::data, $name);
my $self = eval $s if $s;
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 $@;
+ dbg("error in reading $name in DXHash $@") if $@;
$self = bless {name => $name}, $pkg unless $self;
return $self;
}
$self = bless {name => $name}, $pkg unless $self;
return $self;
}