/usr/share/perl5/Devel/REPL/Plugin/Refresh.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 29 30 31 32 33 34 35 36 37 | use strict;
use warnings;
package Devel::REPL::Plugin::Refresh;
BEGIN {
$Devel::REPL::Plugin::Refresh::AUTHORITY = 'cpan:PHAYLON';
}
$Devel::REPL::Plugin::Refresh::VERSION = '1.003026';
use Devel::REPL::Plugin;
use namespace::autoclean;
use Module::Refresh;
# before evaluating the code, ask Module::Refresh to refresh
# the modules that have changed
around 'eval' => sub {
my $orig = shift;
my ($self, $line) = @_;
# first refresh the changed modules
Module::Refresh->refresh;
# the eval the code
return $self->$orig($line);
};
1;
__END__
=head1 NAME
Devel::REPL::Plugin::Refresh - reload libraries with Module::Refresh
=head1 VERSION
version 1.003026
=cut
|