line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Catmandu::Store::MongoDB::Bag; |
2
|
|
|
|
|
|
|
|
3
|
3
|
|
|
3
|
|
20
|
use Catmandu::Sane; |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
17
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
our $VERSION = '0.0806'; |
6
|
|
|
|
|
|
|
|
7
|
3
|
|
|
3
|
|
457
|
use Catmandu::Util qw(:is); |
|
3
|
|
|
|
|
7
|
|
|
3
|
|
|
|
|
820
|
|
8
|
3
|
|
|
3
|
|
1146
|
use Catmandu::Store::MongoDB::Searcher; |
|
3
|
|
|
|
|
10
|
|
|
3
|
|
|
|
|
122
|
|
9
|
3
|
|
|
3
|
|
1960
|
use Catmandu::Hits; |
|
3
|
|
|
|
|
29043
|
|
|
3
|
|
|
|
|
131
|
|
10
|
3
|
|
|
3
|
|
23
|
use Cpanel::JSON::XS qw(decode_json); |
|
3
|
|
|
|
|
8
|
|
|
3
|
|
|
|
|
186
|
|
11
|
3
|
|
|
3
|
|
36
|
use Moo; |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
13
|
|
12
|
3
|
|
|
3
|
|
2865
|
use Catmandu::Store::MongoDB::CQL; |
|
3
|
|
|
|
|
9
|
|
|
3
|
|
|
|
|
94
|
|
13
|
3
|
|
|
3
|
|
24
|
use namespace::clean; |
|
3
|
|
|
|
|
5
|
|
|
3
|
|
|
|
|
23
|
|
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
with 'Catmandu::Bag'; |
16
|
|
|
|
|
|
|
with 'Catmandu::Droppable'; |
17
|
|
|
|
|
|
|
with 'Catmandu::CQLSearchable'; |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
has collection => ( |
20
|
|
|
|
|
|
|
is => 'ro', |
21
|
|
|
|
|
|
|
init_arg => undef, |
22
|
|
|
|
|
|
|
lazy => 1, |
23
|
|
|
|
|
|
|
builder => '_build_collection', |
24
|
|
|
|
|
|
|
); |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
has cql_mapping => (is => 'ro'); |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
sub _build_collection { |
29
|
0
|
|
|
0
|
|
|
my ($self) = @_; |
30
|
0
|
|
|
|
|
|
$self->store->database->get_collection($self->name); |
31
|
|
|
|
|
|
|
} |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
sub _options { |
34
|
0
|
|
|
0
|
|
|
my ($self, $opts) = @_; |
35
|
0
|
|
0
|
|
|
|
$opts //= {}; |
36
|
0
|
0
|
|
|
|
|
$opts->{session} = $self->store->session if $self->store->has_session; |
37
|
0
|
|
|
|
|
|
$opts; |
38
|
|
|
|
|
|
|
} |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
sub _cursor { |
41
|
0
|
|
|
0
|
|
|
my ($self, $filter, $opts) = @_; |
42
|
0
|
|
0
|
|
|
|
$self->collection->find($filter // {}, $self->_options($opts)); |
43
|
|
|
|
|
|
|
} |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
sub generator { |
46
|
0
|
|
|
0
|
0
|
|
my ($self) = @_; |
47
|
|
|
|
|
|
|
sub { |
48
|
0
|
|
|
0
|
|
|
state $cursor = do { |
49
|
0
|
|
|
|
|
|
my $c = $self->_cursor; |
50
|
0
|
|
|
|
|
|
$c->immortal(1); |
51
|
0
|
|
|
|
|
|
$c; |
52
|
|
|
|
|
|
|
}; |
53
|
0
|
|
|
|
|
|
$cursor->next; |
54
|
0
|
|
|
|
|
|
}; |
55
|
|
|
|
|
|
|
} |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
sub to_array { |
58
|
0
|
|
|
0
|
0
|
|
my ($self) = @_; |
59
|
0
|
|
|
|
|
|
my @all = $self->_cursor->all; |
60
|
0
|
|
|
|
|
|
\@all; |
61
|
|
|
|
|
|
|
} |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
sub each { |
64
|
0
|
|
|
0
|
0
|
|
my ($self, $sub) = @_; |
65
|
0
|
|
|
|
|
|
my $cursor = $self->_cursor; |
66
|
0
|
|
|
|
|
|
my $n = 0; |
67
|
0
|
|
|
|
|
|
while (my $data = $cursor->next) { |
68
|
0
|
|
|
|
|
|
$sub->($data); |
69
|
0
|
|
|
|
|
|
$n++; |
70
|
|
|
|
|
|
|
} |
71
|
0
|
|
|
|
|
|
$n; |
72
|
|
|
|
|
|
|
} |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
sub count { |
75
|
0
|
|
|
0
|
0
|
|
my ($self) = @_; |
76
|
0
|
0
|
|
|
|
|
if ($self->store->estimate_count) { |
77
|
0
|
|
|
|
|
|
return $self->collection->estimated_document_count(); |
78
|
|
|
|
|
|
|
} |
79
|
0
|
|
|
|
|
|
$self->collection->count_documents({}, $self->_options); |
80
|
|
|
|
|
|
|
} |
81
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
# efficiently handle: |
83
|
|
|
|
|
|
|
# $bag->detect('foo' => 'bar') |
84
|
|
|
|
|
|
|
# $bag->detect('foo' => /bar/) |
85
|
|
|
|
|
|
|
# $bag->detect('foo' => ['bar', 'baz']) |
86
|
|
|
|
|
|
|
around detect => sub { |
87
|
|
|
|
|
|
|
my ($orig, $self, $arg1, $arg2) = @_; |
88
|
|
|
|
|
|
|
if (is_string($arg1)) { |
89
|
|
|
|
|
|
|
if (is_value($arg2) || is_regex_ref($arg2)) { |
90
|
|
|
|
|
|
|
return $self->collection->find_one({$arg1 => $arg2}, |
91
|
|
|
|
|
|
|
{}, $self->_options); |
92
|
|
|
|
|
|
|
} |
93
|
|
|
|
|
|
|
if (is_array_ref($arg2)) { |
94
|
|
|
|
|
|
|
return $self->collection->find_one({$arg1 => {'$in' => $arg2}}, |
95
|
|
|
|
|
|
|
{}, $self->_options); |
96
|
|
|
|
|
|
|
} |
97
|
|
|
|
|
|
|
} |
98
|
|
|
|
|
|
|
$self->$orig($arg1, $arg2); |
99
|
|
|
|
|
|
|
}; |
100
|
|
|
|
|
|
|
|
101
|
|
|
|
|
|
|
# efficiently handle: |
102
|
|
|
|
|
|
|
# $bag->select('foo' => 'bar') |
103
|
|
|
|
|
|
|
# $bag->select('foo' => /bar/) |
104
|
|
|
|
|
|
|
# $bag->select('foo' => ['bar', 'baz']) |
105
|
|
|
|
|
|
|
around select => sub { |
106
|
|
|
|
|
|
|
my ($orig, $self, $arg1, $arg2) = @_; |
107
|
|
|
|
|
|
|
if (is_string($arg1)) { |
108
|
|
|
|
|
|
|
if (is_value($arg2) || is_regex_ref($arg2)) { |
109
|
|
|
|
|
|
|
return Catmandu::Iterator->new( |
110
|
|
|
|
|
|
|
sub { |
111
|
|
|
|
|
|
|
sub { |
112
|
|
|
|
|
|
|
state $cursor = $self->_cursor({$arg1 => $arg2}); |
113
|
|
|
|
|
|
|
$cursor->next; |
114
|
|
|
|
|
|
|
} |
115
|
|
|
|
|
|
|
} |
116
|
|
|
|
|
|
|
); |
117
|
|
|
|
|
|
|
} |
118
|
|
|
|
|
|
|
if (is_array_ref($arg2)) { |
119
|
|
|
|
|
|
|
return Catmandu::Iterator->new( |
120
|
|
|
|
|
|
|
sub { |
121
|
|
|
|
|
|
|
sub { |
122
|
|
|
|
|
|
|
state $cursor |
123
|
|
|
|
|
|
|
= $self->_cursor({$arg1 => {'$in' => $arg2}}); |
124
|
|
|
|
|
|
|
$cursor->next; |
125
|
|
|
|
|
|
|
} |
126
|
|
|
|
|
|
|
} |
127
|
|
|
|
|
|
|
); |
128
|
|
|
|
|
|
|
} |
129
|
|
|
|
|
|
|
} |
130
|
|
|
|
|
|
|
$self->$orig($arg1, $arg2); |
131
|
|
|
|
|
|
|
}; |
132
|
|
|
|
|
|
|
|
133
|
|
|
|
|
|
|
# efficiently handle: |
134
|
|
|
|
|
|
|
# $bag->reject('foo' => 'bar') |
135
|
|
|
|
|
|
|
# $bag->reject('foo' => ['bar', 'baz']) |
136
|
|
|
|
|
|
|
around reject => sub { |
137
|
|
|
|
|
|
|
my ($orig, $self, $arg1, $arg2) = @_; |
138
|
|
|
|
|
|
|
if (is_string($arg1)) { |
139
|
|
|
|
|
|
|
if (is_value($arg2)) { |
140
|
|
|
|
|
|
|
return Catmandu::Iterator->new( |
141
|
|
|
|
|
|
|
sub { |
142
|
|
|
|
|
|
|
sub { |
143
|
|
|
|
|
|
|
state $cursor |
144
|
|
|
|
|
|
|
= $self->_cursor({$arg1 => {'$ne' => $arg2}}); |
145
|
|
|
|
|
|
|
$cursor->next; |
146
|
|
|
|
|
|
|
} |
147
|
|
|
|
|
|
|
} |
148
|
|
|
|
|
|
|
); |
149
|
|
|
|
|
|
|
} |
150
|
|
|
|
|
|
|
if (is_array_ref($arg2)) { |
151
|
|
|
|
|
|
|
return Catmandu::Iterator->new( |
152
|
|
|
|
|
|
|
sub { |
153
|
|
|
|
|
|
|
sub { |
154
|
|
|
|
|
|
|
state $cursor |
155
|
|
|
|
|
|
|
= $self->_cursor({$arg1 => {'$nin' => $arg2}}); |
156
|
|
|
|
|
|
|
$cursor->next; |
157
|
|
|
|
|
|
|
} |
158
|
|
|
|
|
|
|
} |
159
|
|
|
|
|
|
|
); |
160
|
|
|
|
|
|
|
} |
161
|
|
|
|
|
|
|
} |
162
|
|
|
|
|
|
|
$self->$orig($arg1, $arg2); |
163
|
|
|
|
|
|
|
}; |
164
|
|
|
|
|
|
|
|
165
|
|
|
|
|
|
|
sub pluck { |
166
|
0
|
|
|
0
|
0
|
|
my ($self, $key) = @_; |
167
|
|
|
|
|
|
|
Catmandu::Iterator->new( |
168
|
|
|
|
|
|
|
sub { |
169
|
|
|
|
|
|
|
sub { |
170
|
0
|
|
|
|
|
|
state $cursor |
171
|
|
|
|
|
|
|
= $self->_cursor({}, {projection => {$key => 1}}); |
172
|
0
|
|
0
|
|
|
|
($cursor->next || return)->{$key}; |
173
|
|
|
|
|
|
|
} |
174
|
0
|
|
|
0
|
|
|
} |
175
|
0
|
|
|
|
|
|
); |
176
|
|
|
|
|
|
|
} |
177
|
|
|
|
|
|
|
|
178
|
|
|
|
|
|
|
sub get { |
179
|
|
|
|
|
|
|
my ($self, $id) = @_; |
180
|
|
|
|
|
|
|
$self->collection->find_one({_id => $id}, {}, $self->_options); |
181
|
|
|
|
|
|
|
} |
182
|
|
|
|
|
|
|
|
183
|
|
|
|
|
|
|
sub add { |
184
|
|
|
|
|
|
|
my ($self, $data) = @_; |
185
|
|
|
|
|
|
|
$self->collection->replace_one({_id => $data->{_id}}, |
186
|
|
|
|
|
|
|
$data, $self->_options({upsert => 1})); |
187
|
|
|
|
|
|
|
} |
188
|
|
|
|
|
|
|
|
189
|
|
|
|
|
|
|
sub delete { |
190
|
|
|
|
|
|
|
my ($self, $id) = @_; |
191
|
|
|
|
|
|
|
$self->collection->delete_one({_id => $id}, $self->_options); |
192
|
|
|
|
|
|
|
} |
193
|
|
|
|
|
|
|
|
194
|
|
|
|
|
|
|
sub delete_all { |
195
|
|
|
|
|
|
|
my ($self) = @_; |
196
|
|
|
|
|
|
|
$self->collection->delete_many({}, $self->_options); |
197
|
|
|
|
|
|
|
} |
198
|
|
|
|
|
|
|
|
199
|
|
|
|
|
|
|
sub delete_by_query { |
200
|
|
|
|
|
|
|
my ($self, %args) = @_; |
201
|
|
|
|
|
|
|
$self->collection->delete_many($args{query}, $self->_options); |
202
|
|
|
|
|
|
|
} |
203
|
|
|
|
|
|
|
|
204
|
|
|
|
|
|
|
sub search { |
205
|
|
|
|
|
|
|
my ($self, %args) = @_; |
206
|
|
|
|
|
|
|
|
207
|
|
|
|
|
|
|
my $query = $args{query}; |
208
|
|
|
|
|
|
|
my $start = $args{start}; |
209
|
|
|
|
|
|
|
my $limit = $args{limit}; |
210
|
|
|
|
|
|
|
my $bag = $args{reify}; |
211
|
|
|
|
|
|
|
my $fields = $args{fields}; |
212
|
|
|
|
|
|
|
|
213
|
|
|
|
|
|
|
# limit 0 == all in mongodb |
214
|
|
|
|
|
|
|
my $orig_limit = $limit; |
215
|
|
|
|
|
|
|
if ($orig_limit == 0) { |
216
|
|
|
|
|
|
|
$limit = 1; |
217
|
|
|
|
|
|
|
} |
218
|
|
|
|
|
|
|
|
219
|
|
|
|
|
|
|
my $cursor = $self->_cursor($query)->skip($start)->limit($limit); |
220
|
|
|
|
|
|
|
if ($bag) { # only retrieve _id |
221
|
|
|
|
|
|
|
$cursor->fields({}); |
222
|
|
|
|
|
|
|
} |
223
|
|
|
|
|
|
|
elsif ($fields) { # only retrieve specified fields |
224
|
|
|
|
|
|
|
$cursor->fields($fields); |
225
|
|
|
|
|
|
|
} |
226
|
|
|
|
|
|
|
|
227
|
|
|
|
|
|
|
if (my $sort = $args{sort}) { |
228
|
|
|
|
|
|
|
$cursor->sort($sort); |
229
|
|
|
|
|
|
|
} |
230
|
|
|
|
|
|
|
|
231
|
|
|
|
|
|
|
my @hits = $cursor->all; |
232
|
|
|
|
|
|
|
|
233
|
|
|
|
|
|
|
if ($orig_limit == 0) { |
234
|
|
|
|
|
|
|
@hits = (); |
235
|
|
|
|
|
|
|
} |
236
|
|
|
|
|
|
|
|
237
|
|
|
|
|
|
|
if ($bag) { |
238
|
|
|
|
|
|
|
@hits = map {$bag->get($_->{_id})} @hits; |
239
|
|
|
|
|
|
|
} |
240
|
|
|
|
|
|
|
|
241
|
|
|
|
|
|
|
my $total; |
242
|
|
|
|
|
|
|
|
243
|
|
|
|
|
|
|
if (!($query && scalar(keys %$query) > 0) && $self->store->estimate_count) |
244
|
|
|
|
|
|
|
{ |
245
|
|
|
|
|
|
|
$total = $self->collection->estimated_document_count(); |
246
|
|
|
|
|
|
|
} |
247
|
|
|
|
|
|
|
else { |
248
|
|
|
|
|
|
|
$total = $self->collection->count_documents($query, $self->_options); |
249
|
|
|
|
|
|
|
} |
250
|
|
|
|
|
|
|
|
251
|
|
|
|
|
|
|
Catmandu::Hits->new( |
252
|
|
|
|
|
|
|
{ |
253
|
|
|
|
|
|
|
start => $start, |
254
|
|
|
|
|
|
|
limit => $orig_limit, |
255
|
|
|
|
|
|
|
total => $total, |
256
|
|
|
|
|
|
|
hits => \@hits, |
257
|
|
|
|
|
|
|
} |
258
|
|
|
|
|
|
|
); |
259
|
|
|
|
|
|
|
} |
260
|
|
|
|
|
|
|
|
261
|
|
|
|
|
|
|
sub searcher { |
262
|
|
|
|
|
|
|
my ($self, %args) = @_; |
263
|
|
|
|
|
|
|
Catmandu::Store::MongoDB::Searcher->new(%args, bag => $self); |
264
|
|
|
|
|
|
|
} |
265
|
|
|
|
|
|
|
|
266
|
|
|
|
|
|
|
sub translate_sru_sortkeys { |
267
|
0
|
|
|
0
|
0
|
|
my ($self, $sortkeys) = @_; |
268
|
|
|
|
|
|
|
my $keys = [ |
269
|
0
|
|
|
|
|
|
grep {defined $_} map {$self->_translate_sru_sortkey($_)} split /\s+/, |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
270
|
|
|
|
|
|
|
$sortkeys |
271
|
|
|
|
|
|
|
]; |
272
|
0
|
|
|
|
|
|
my $mongo_sort = []; |
273
|
|
|
|
|
|
|
|
274
|
|
|
|
|
|
|
# flatten sortkeys |
275
|
0
|
|
|
|
|
|
for (@$keys) { |
276
|
0
|
|
|
|
|
|
push @$mongo_sort, @$_; |
277
|
|
|
|
|
|
|
} |
278
|
0
|
|
|
|
|
|
$self->log->debugf("translating sortkeys '$sortkeys' to mongo sort: %s", |
279
|
|
|
|
|
|
|
$mongo_sort); |
280
|
0
|
|
|
|
|
|
$mongo_sort; |
281
|
|
|
|
|
|
|
} |
282
|
|
|
|
|
|
|
|
283
|
|
|
|
|
|
|
sub _translate_sru_sortkey { |
284
|
0
|
|
|
0
|
|
|
my ($self, $sortkey) = @_; |
285
|
0
|
|
|
|
|
|
my ($field, $schema, $asc) = split /,/, $sortkey; |
286
|
0
|
0
|
|
|
|
|
$field || return; |
287
|
0
|
0
|
0
|
|
|
|
($asc && ($asc == 1 || $asc == -1)) || return; |
|
|
|
0
|
|
|
|
|
288
|
0
|
0
|
|
|
|
|
if (my $map = $self->cql_mapping) { |
289
|
0
|
|
|
|
|
|
$field = lc $field; |
290
|
|
|
|
|
|
|
$field =~ s/(?<=[^_])_(?=[^_])//g |
291
|
0
|
0
|
|
|
|
|
if $map->{strip_separating_underscores}; |
292
|
0
|
|
0
|
|
|
|
$map = $map->{indexes} || return; |
293
|
0
|
|
0
|
|
|
|
$map = $map->{$field} || return; |
294
|
0
|
0
|
|
|
|
|
$map->{sort} || return; |
295
|
0
|
0
|
0
|
|
|
|
if (ref $map->{sort} && $map->{sort}{field}) { |
|
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
296
|
0
|
|
|
|
|
|
$field = $map->{sort}{field}; |
297
|
|
|
|
|
|
|
} |
298
|
|
|
|
|
|
|
elsif (ref $map->{field}) { |
299
|
0
|
|
|
|
|
|
$field = $map->{field}->[0]; |
300
|
|
|
|
|
|
|
} |
301
|
|
|
|
|
|
|
elsif ($map->{field}) { |
302
|
0
|
|
|
|
|
|
$field = $map->{field}; |
303
|
|
|
|
|
|
|
} |
304
|
|
|
|
|
|
|
} |
305
|
|
|
|
|
|
|
|
306
|
|
|
|
|
|
|
# Use a bad trick to force $asc interpreted as an integer |
307
|
0
|
|
|
|
|
|
[$field => $asc + 0]; |
308
|
|
|
|
|
|
|
} |
309
|
|
|
|
|
|
|
|
310
|
|
|
|
|
|
|
sub translate_cql_query { |
311
|
0
|
|
|
0
|
0
|
|
my ($self, $query) = @_; |
312
|
0
|
|
|
|
|
|
my $mongo_query |
313
|
|
|
|
|
|
|
= Catmandu::Store::MongoDB::CQL->new(mapping => $self->cql_mapping) |
314
|
|
|
|
|
|
|
->parse($query); |
315
|
0
|
|
|
|
|
|
$self->log->debugf("translating cql '$query' to mongo query: %s", |
316
|
|
|
|
|
|
|
$mongo_query); |
317
|
0
|
|
|
|
|
|
$mongo_query; |
318
|
|
|
|
|
|
|
} |
319
|
|
|
|
|
|
|
|
320
|
|
|
|
|
|
|
# assume a string query is a JSON encoded MongoDB query |
321
|
|
|
|
|
|
|
sub normalize_query { |
322
|
0
|
|
|
0
|
0
|
|
my ($self, $query) = @_; |
323
|
0
|
0
|
|
|
|
|
return $query if ref $query; |
324
|
0
|
0
|
|
|
|
|
return {} if !$query; |
325
|
0
|
|
|
|
|
|
decode_json($query); |
326
|
|
|
|
|
|
|
} |
327
|
|
|
|
|
|
|
|
328
|
|
|
|
|
|
|
# assume a sort option is a JSON encoded MongoDB sort specification |
329
|
|
|
|
|
|
|
sub normalize_sort { |
330
|
0
|
|
|
0
|
0
|
|
my ($self, $sort) = @_; |
331
|
0
|
0
|
|
|
|
|
return $sort if ref $sort; |
332
|
0
|
0
|
|
|
|
|
return {} if !$sort; |
333
|
0
|
|
|
|
|
|
decode_json($sort); |
334
|
|
|
|
|
|
|
} |
335
|
|
|
|
|
|
|
|
336
|
|
|
|
|
|
|
sub drop { |
337
|
0
|
|
|
0
|
0
|
|
$_[0]->collection->drop; |
338
|
|
|
|
|
|
|
} |
339
|
|
|
|
|
|
|
|
340
|
|
|
|
|
|
|
1; |
341
|
|
|
|
|
|
|
|
342
|
|
|
|
|
|
|
__END__ |
343
|
|
|
|
|
|
|
|
344
|
|
|
|
|
|
|
=pod |
345
|
|
|
|
|
|
|
|
346
|
|
|
|
|
|
|
=head1 NAME |
347
|
|
|
|
|
|
|
|
348
|
|
|
|
|
|
|
Catmandu::Store::MongoDB::Bag - Catmandu::Bag implementation for MongoDB |
349
|
|
|
|
|
|
|
|
350
|
|
|
|
|
|
|
=head1 DESCRIPTION |
351
|
|
|
|
|
|
|
|
352
|
|
|
|
|
|
|
This class isn't normally used directly. Instances are constructed using the store's C<bag> method. |
353
|
|
|
|
|
|
|
|
354
|
|
|
|
|
|
|
=head1 SEE ALSO |
355
|
|
|
|
|
|
|
|
356
|
|
|
|
|
|
|
L<Catmandu::Bag>, L<Catmandu::CQLSearchable>, L<Catmandu::Droppable> |
357
|
|
|
|
|
|
|
|
358
|
|
|
|
|
|
|
=cut |