KiokuDB::LiveObjects::Scope(3pm) | User Contributed Perl Documentation | KiokuDB::LiveObjects::Scope(3pm) |
KiokuDB::LiveObjects::Scope - Scope helper object
version 0.57
{ my $scope = $dir->new_scope; ... do work on $dir ... }
Live object scopes exist in order to ensure objects don't die too soon if the only other references to them are weak.
When scopes are destroyed the refcounts of the objects they refer to go down, and the parent scope is replaced in the live object set.
This allows keeping branching of scopes, which can be useful under long running applications.
Yuval Kogman <nothingmuch@woobling.org>
This software is copyright (c) 2014 by Yuval Kogman, Infinity Interactive.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
2022-05-23 | perl v5.34.0 |