line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package PICA::Modification::Queue; |
2
|
|
|
|
|
|
|
{ |
3
|
|
|
|
|
|
|
$PICA::Modification::Queue::VERSION = '0.16'; |
4
|
|
|
|
|
|
|
} |
5
|
|
|
|
|
|
|
#ABSTRACT: Queued list of modification requests of PICA+ records |
6
|
|
|
|
|
|
|
|
7
|
2
|
|
|
2
|
|
32053
|
use strict; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
133
|
|
8
|
2
|
|
|
2
|
|
12
|
use warnings; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
74
|
|
9
|
2
|
|
|
2
|
|
45
|
use v5.10; |
|
2
|
|
|
|
|
7
|
|
|
2
|
|
|
|
|
147
|
|
10
|
|
|
|
|
|
|
|
11
|
2
|
|
|
2
|
|
11
|
use Carp; |
|
2
|
|
|
|
|
25
|
|
|
2
|
|
|
|
|
293
|
|
12
|
2
|
|
|
2
|
|
12
|
use Scalar::Util qw(reftype); |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
2563
|
|
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
sub new { |
15
|
0
|
|
|
0
|
1
|
|
my $class = shift; |
16
|
0
|
|
0
|
|
|
|
my $name = shift || 'hash'; |
17
|
|
|
|
|
|
|
|
18
|
0
|
0
|
|
|
|
|
if ('HASH' ~~ reftype($name)) { |
19
|
0
|
|
|
|
|
|
my $args = $name; |
20
|
0
|
|
|
|
|
|
$name = delete $name->{type}; |
21
|
0
|
|
|
|
|
|
return $class->new( $name, %$args ); |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
0
|
|
|
|
|
|
$class = $class . '::' . ucfirst($name); |
25
|
|
|
|
|
|
|
|
26
|
0
|
|
|
|
|
|
my $file = $class; |
27
|
0
|
|
|
|
|
|
$file =~ s!::!/!g; |
28
|
0
|
|
|
|
|
|
require "$file.pm"; ## no critic |
29
|
|
|
|
|
|
|
|
30
|
0
|
|
|
|
|
|
$class->new( @_ ); |
31
|
|
|
|
|
|
|
} |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
1; |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
__END__ |