line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
1
|
|
|
1
|
|
1201
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
42
|
|
2
|
1
|
|
|
1
|
|
5
|
use warnings; |
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
45
|
|
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
package Pad::Tie::Plugin::ArrayRef; |
5
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
|
5
|
use base 'Pad::Tie::Plugin'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
203
|
|
7
|
|
|
|
|
|
|
|
8
|
1
|
|
|
1
|
1
|
4
|
sub provides { 'array_ref' } |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
sub array_ref { |
11
|
1
|
|
|
1
|
0
|
2
|
my ($plugin, $ctx, $self, $args) = @_; |
12
|
|
|
|
|
|
|
|
13
|
1
|
|
|
|
|
7
|
$args = $plugin->canon_args($args); |
14
|
|
|
|
|
|
|
|
15
|
1
|
|
|
|
|
3
|
for my $method (keys %$args) { |
16
|
|
|
|
|
|
|
# no tie needed because it is a basic arrayref |
17
|
1
|
|
|
|
|
218
|
$ctx->{'@' . $args->{$method}} = $self->$method; |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
} |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
1; |