Revision history for Devel-REPL
+ - removed use of deprecated functions from Class::MOP
+
1.003020 2013-07-08
- shebang fixed in re.pl so it is rewritten to point to the proper perl at
install time (RT#70928)
requires 'B::Concise';
requires 'Term::ANSIColor';
requires 'Devel::Peek';
+requires 'Module::Runtime';
recommends 'PPI::XS' => '0.902';
use Devel::REPL;
use File::HomeDir;
use File::Spec;
+use Module::Runtime 'use_module';
use vars qw($CURRENT_SCRIPT);
use namespace::autoclean;
sub load_profile {
my ($self, $profile) = @_;
$profile = "Devel::REPL::Profile::${profile}" unless $profile =~ /::/;
- Class::MOP::load_class($profile);
+ use_module $profile;
confess "Profile class ${profile} doesn't do 'Devel::REPL::Profile'"
unless $profile->does('Devel::REPL::Profile');
$profile->new->apply_profile($self->_repl);