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

filter: Statementstmt 0.0% 0 / 7 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 1 Podpod n/a totaltotal 0.0% 0 / 8 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
CRAP 2.0
1 package Mason::Plugin::DollarDot::Compilation;
2 $Mason::Plugin::DollarDot::Compilation::VERSION = '2.23';
3 use Mason::PluginRole;
4  
5 after 'process_perl_code' => sub {
6 my ( $self, $coderef ) = @_;
7  
8 # Replace $. with $self->
9 $$coderef =~ s/ \$\.([^\W\d]\w*) / \$self->$1 /gx;
10 };
11  
12 1;