Skip to content

Commit

Permalink
Print result of last statement, not first, in REPL
Browse files Browse the repository at this point in the history
  • Loading branch information
sorear committed Dec 30, 2010
1 parent 769101c commit c7063c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion niecza_eval
Expand Up @@ -83,7 +83,7 @@ if ($module) {
while (defined ($_ = $term->readline("> ")) ) {
/^\s*[^\s#]/ or next;
eval {
run(code => "say do $_");
run(code => "say ($_)");
};
say $@ if $@;
$term->addhistory($_) if /\S/;
Expand Down

0 comments on commit c7063c5

Please sign in to comment.