projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
PC61 with badip will now also stop following PC11s
[spider.git]
/
perl
/
Chain.pm
diff --git
a/perl/Chain.pm
b/perl/Chain.pm
index 8afd62f05b6a25ad146b69aaca08f4518d2ca582..27b966c869e823e8f879fcf45501af0c70803922 100644
(file)
--- a/
perl/Chain.pm
+++ b/
perl/Chain.pm
@@
-2,16
+2,14
@@
package Chain;
use strict;
use Carp;
use strict;
use Carp;
-
-use vars qw($VERSION $docheck);
-
-$VERSION = do { my @r = (q$Revision$ =~ /\d+/g); sprintf "%d."."%02d" x $#r, @r};
use constant NEXT => 0;
use constant PREV => 1;
use constant OBJ => 2;
use constant NEXT => 0;
use constant PREV => 1;
use constant OBJ => 2;
-$docheck = 1;
+use vars qw($docheck);
+
+$docheck = 0;
sub _check
{
sub _check
{
@@
-152,6
+150,13
@@
sub count
return $count;
}
return $count;
}
+sub close
+{
+ my $base = shift;
+ $base->flush;
+ $base->[PREV] = $base->[NEXT] = undef;
+}
+
1;
__END__
# Below is the stub of documentation for your module. You better edit it!
1;
__END__
# Below is the stub of documentation for your module. You better edit it!