projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
deploy a default input route if none present.
[spider.git]
/
perl
/
Chain.pm
diff --git
a/perl/Chain.pm
b/perl/Chain.pm
index c4fa99a79b5d45690e11e66fb9c5eee1b5cd171b..27b966c869e823e8f879fcf45501af0c70803922 100644
(file)
--- a/
perl/Chain.pm
+++ b/
perl/Chain.pm
@@
-3,19
+3,13
@@
package Chain;
use strict;
use Carp;
use strict;
use Carp;
-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;
-
use constant NEXT => 0;
use constant PREV => 1;
use constant OBJ => 2;
use vars qw($docheck);
use constant NEXT => 0;
use constant PREV => 1;
use constant OBJ => 2;
use vars qw($docheck);
-$docheck =
1
;
+$docheck =
0
;
sub _check
{
sub _check
{
@@
-156,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!