use Module::Runtime qw(use_module);
use DX::Utils qw(dict deparse);
use Devel::Dwarn;
+use Try::Tiny;
BEGIN { *u = \&use_module }
my $scope = u('DX::Scope')->new(
my $rl = u('Caroline')->new;
while (my $line = $rl->readline('$ ')) {
- $tcl->Eval($line);
+ try {
+ $tcl->Eval($line);
+ } catch {
+ warn "Eval error: $_";
+ };
+ $rl->history_add($line);
}