| 1 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 2 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | |||
| 4 | package Pad::Tie::Plugin::ArrayRef; | ||
| 5 | |||
| 6 | 1 | ▶ | use base 'Pad::Tie::Plugin'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | 1 | ▶ | sub provides { 'array_ref' } |
|
Subroutine
provides: called CC=1 SCAR=0.0
Pod
documented
| |||
| 9 | |||
| 10 | 1 | ▶ | sub array_ref { |
|
Subroutine
array_ref: called CC=2 SCAR=6.9
Pod
undocumented
| |||
| 11 | 1 | my ($plugin, $ctx, $self, $args) = @_; | |
| 12 | |||
| 13 | 1 | $args = $plugin->canon_args($args); | |
| 14 | |||
| 15 | 1 | for my $method (keys %$args) { | |
| 16 | # no tie needed because it is a basic arrayref | ||
| 17 | 1 | $ctx->{'@' . $args->{$method}} = $self->$method; | |
| 18 | } | ||
| 19 | } | ||
| 20 | |||
| 21 | 1 | 1; | |