line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package cPanel::TQSerializer::Storable; |
2
|
|
|
|
|
|
|
{ |
3
|
|
|
|
|
|
|
$cPanel::TQSerializer::Storable::VERSION = '0.606'; |
4
|
|
|
|
|
|
|
} |
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
# cpanel - cPanel/TQSerializer/Storable.pm Copyright(c) 2014 cPanel, Inc. |
7
|
|
|
|
|
|
|
# All rights Reserved. |
8
|
|
|
|
|
|
|
# copyright@cpanel.net http://cpanel.net |
9
|
|
|
|
|
|
|
# This code is subject to the cPanel license. Unauthorized copying is prohibited |
10
|
|
|
|
|
|
|
|
11
|
22
|
|
|
22
|
|
23832
|
use Storable(); |
|
22
|
|
|
|
|
81323
|
|
|
22
|
|
|
|
|
553
|
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
#use warnings; |
14
|
22
|
|
|
22
|
|
179
|
use strict; |
|
22
|
|
|
|
|
50
|
|
|
22
|
|
|
|
|
3892
|
|
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
sub load { |
17
|
13
|
|
|
13
|
1
|
25
|
my ( $class, $fh ) = @_; |
18
|
13
|
|
|
|
|
24
|
my $ref = eval { Storable::fd_retrieve($fh) }; |
|
13
|
|
|
|
|
57
|
|
19
|
13
|
100
|
|
|
|
1137
|
return @{ $ref || [] }; |
|
13
|
|
|
|
|
84
|
|
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
sub save { |
23
|
216
|
|
|
216
|
1
|
810
|
my ( $class, $fh, @args ) = @_; |
24
|
216
|
|
|
|
|
1179
|
return Storable::nstore_fd( \@args, $fh ); |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
sub filename { |
28
|
39
|
|
|
39
|
1
|
91
|
my ( $class, $stub ) = @_; |
29
|
39
|
|
|
|
|
537
|
return "$stub.stor"; |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
1; |
33
|
|
|
|
|
|
|
|