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