blib/lib/Mason/Plugin/DollarDot/Compilation.pm

filter: Statementstmt 100% 8 / 8 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod n/a totaltotal 100% 10 / 10 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
__ANON__
1.0
CRAP 1.0
« blib/lib/Mason/Plugin/DollarDot.pm ↑ Summary blib/lib/Mason/Plugin/LvalueAttributes.pm »
1 package Mason::Plugin::DollarDot::Compilation;
2 21 $Mason::Plugin::DollarDot::Compilation::VERSION = '2.24';
3 21 ▶use Mason::PluginRole;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 386 ▶after 'process_perl_code' => sub {
Subroutine __ANON__: called CC=1 SCAR=0.0
6 386 my ( $self, $coderef ) = @_;
7  
8 # Replace $. with $self->
9 386 $$coderef =~ s/ \$\.([^\W\d]\w*) / \$self->$1 /gx;
10 21 };
11  
12 21 1;
« blib/lib/Mason/Plugin/DollarDot.pm ↑ Summary blib/lib/Mason/Plugin/LvalueAttributes.pm »