1Storm::LiveObjects::ScoUpsee(r3)Contributed Perl DocumenSttaotrimo:n:LiveObjects::Scope(3)
2
3
4
6 Storm::LiveObjects::Scope - Scope helper object
7
9 {
10 my $scope = $storm->new_scope;
11
12 ... do work on objects ...
13 }
14
16 Live object scopes exist in order to ensure objects don't die too soon
17 if the only other references to them are weak.
18
19 When scopes are destroyed the refcounts of the objects they refer to go
20 down, and the parent scope is replaced in the live object set.
21
23 push
24 Adds objects or entries, increasing their reference count.
25
26 clear
27 Clears the objects from the scope object.
28
30 Modified from code in KiokuDB::LiveOBjects::Scope by Yuval Kogman.
31
32
33
34perl v5.36.0 2022-07-22 Storm::LiveObjects::Scope(3)