projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add the ability to limit no of connections
[spider.git]
/
perl
/
DXHash.pm
diff --git
a/perl/DXHash.pm
b/perl/DXHash.pm
index 870ac9cc4dedd17d01bbea823f840121b8bb95c0..1e3c833e0dfa5d7d7b1f842d426a38d322645d97 100644
(file)
--- a/
perl/DXHash.pm
+++ b/
perl/DXHash.pm
@@
-14,7
+14,7
@@
#
# Copyright (c) 2001 Dirk Koopman G1TLH
#
#
# Copyright (c) 2001 Dirk Koopman G1TLH
#
-#
$Id$
+#
#
package DXHash;
#
package DXHash;
@@
-29,9
+29,10
@@
sub new
{
my ($pkg, $name) = @_;
my $s = readfilestr($main::data, $name);
{
my ($pkg, $name) = @_;
my $s = readfilestr($main::data, $name);
- my $self = eval $s if $s;
+ my $self = undef;
+ $self = eval $s if $s;
dbg("error in reading $name in DXHash $@") if $@;
dbg("error in reading $name in DXHash $@") if $@;
- $self = bless
{name => $name}, $pkg unless
$self;
+ $self = bless
({name => $name}, $pkg) unless defined
$self;
return $self;
}
return $self;
}