git-svn-id: http://dev.catalyst.perl.org/repos/bast/trunk/Devel-REPL@3195
bd8105ee-0ff8-0310-8827-fb3f25b6796d
}
sub execute {
- my ($self, $to_exec, @args) = @_;
- my @ret = eval { $to_exec->(@args) };
- return $self->error_return("Runtime error", $@) if $@;
+ my $REPL = shift;
+ my @ret = eval { shift->(@_) };
+ return $REPL->error_return("Runtime error", $@) if $@;
return @ret;
}