summaryrefslogtreecommitdiffstats
path: root/lib/App/REPL.pm
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2013-05-30 03:12:25 -0500
committerJesse Luehrs <doy@tozt.net>2013-05-30 03:12:25 -0500
commit071e98547d4dda83c29ea87cd4cff9115667bf24 (patch)
tree5b20f0019eb42b385f7a452c973991a1149ef625 /lib/App/REPL.pm
parent34218fd2af78b254dd424de2289981621ee85f94 (diff)
downloadreply-071e98547d4dda83c29ea87cd4cff9115667bf24.tar.gz
reply-071e98547d4dda83c29ea87cd4cff9115667bf24.zip
split evaluate into compile and execute
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 {