1 package Devel::REPL::Plugin::Refresh;
3 use Devel::REPL::Plugin;
4 use namespace::clean -except => [ 'meta' ];
7 # before evaluating the code, ask Module::Refresh to refresh
8 # the modules that have changed
11 my ($self, $line) = @_;
13 # first refresh the changed modules
14 Module::Refresh->refresh;
17 return $self->$orig($line);
26 Devel::REPL::Plugin::Refresh - reload libraries with Module::Refresh