summaryrefslogtreecommitdiffstats
path: root/lib/App/REPL.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/App/REPL.pm')
-rw-r--r--lib/App/REPL.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/App/REPL.pm b/lib/App/REPL.pm
index 54a674c..56c6e1d 100644
--- a/lib/App/REPL.pm
+++ b/lib/App/REPL.pm
@@ -115,7 +115,8 @@ sub _eval {
($line) = $self->_chained_plugin('mangle_line', $line)
if defined $line;
- return $self->_wrapped_plugin('evaluate', $line);
+ my ($code) = $self->_wrapped_plugin('compile', $line);
+ return $self->_wrapped_plugin('execute', $code);
}
sub _print_error {