X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FChain.pm;fp=perl%2FChain.pm;h=c065d17a62305b6c9fb224f0eb51a45b5ab34c1b;hb=b00e85c55392ddf0593b681d7187e4c4e158568e;hp=c4fa99a79b5d45690e11e66fb9c5eee1b5cd171b;hpb=3dd192a818cd1f0bbf79eab2183be3e5831252f5;p=spider.git diff --git a/perl/Chain.pm b/perl/Chain.pm index c4fa99a7..c065d17a 100644 --- a/perl/Chain.pm +++ b/perl/Chain.pm @@ -156,6 +156,13 @@ sub 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!