| 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; | |