projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Amend new section in admin manual
[spider.git]
/
perl
/
Chain.pm
diff --git
a/perl/Chain.pm
b/perl/Chain.pm
index 8afd62f05b6a25ad146b69aaca08f4518d2ca582..c065d17a62305b6c9fb224f0eb51a45b5ab34c1b 100644
(file)
--- a/
perl/Chain.pm
+++ b/
perl/Chain.pm
@@
-2,15
+2,19
@@
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 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 constant NEXT => 0;
use constant PREV => 1;
use constant OBJ => 2;
+use vars qw($docheck);
+
$docheck = 1;
sub _check
$docheck = 1;
sub _check
@@
-152,6
+156,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!