/usr/share/perl5/Devel/REPL/Meta/Plugin.pm is in libdevel-repl-perl 1.003026-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | use strict;
use warnings;
package Devel::REPL::Meta::Plugin;
BEGIN {
$Devel::REPL::Meta::Plugin::AUTHORITY = 'cpan:PHAYLON';
}
$Devel::REPL::Meta::Plugin::VERSION = '1.003026';
use Moose;
extends 'Moose::Meta::Role';
before 'apply' => sub {
my ($self, $other) = @_;
return unless $other->isa('Devel::REPL');
if (my $pre = $self->get_method('BEFORE_PLUGIN')) {
$pre->body->($other, $self);
}
};
after 'apply' => sub {
my ($self, $other) = @_;
return unless $other->isa('Devel::REPL');
if (my $pre = $self->get_method('AFTER_PLUGIN')) {
$pre->body->($other, $self);
}
};
1;
|