line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Module::Install::PrePAN; |
2
|
2
|
|
|
2
|
|
47070
|
use 5.008001; |
|
2
|
|
|
|
|
9
|
|
|
2
|
|
|
|
|
75
|
|
3
|
2
|
|
|
2
|
|
12
|
use strict; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
63
|
|
4
|
2
|
|
|
2
|
|
17
|
use warnings; |
|
2
|
|
|
|
|
9
|
|
|
2
|
|
|
|
|
70
|
|
5
|
2
|
|
|
2
|
|
11
|
use Carp (); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
79
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
our $VERSION = '0.05'; |
8
|
|
|
|
|
|
|
|
9
|
2
|
|
|
2
|
|
10
|
use base qw(Module::Install::Base); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
3282
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
my %SCHEMA = ( |
12
|
|
|
|
|
|
|
module_url => 1, |
13
|
|
|
|
|
|
|
author_url => 1, |
14
|
|
|
|
|
|
|
); |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
sub prepan { |
17
|
0
|
|
|
0
|
1
|
|
my ($self, %args) = @_; |
18
|
0
|
|
|
|
|
|
my @invalid_keys = grep { !$SCHEMA{$_} } keys %args; |
|
0
|
|
|
|
|
|
|
19
|
0
|
0
|
|
|
|
|
Carp::croak "invalid keys: " . join ', ', @invalid_keys if @invalid_keys; |
20
|
0
|
|
|
|
|
|
$self->resources( |
21
|
|
|
|
|
|
|
X_prepan_author => $args{author_url}, |
22
|
|
|
|
|
|
|
X_prepan_module => $args{module_url}, |
23
|
|
|
|
|
|
|
); |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
!!1; |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
__END__ |