+ - Obey scalar versus list context for ->eval return
- HintPersistence plugin to persist compile time hints (DGL)
- Support plugins (DGL)
- Make prelude configurable, so strictures can be optional (DGL)
%{$self->lexicals},
%{$self->_grab_captures},
});
- @ret;
+ return $self->context eq 'list' ? @ret : $ret[0];
}
sub _grab_captures {
'Sub created ok'
);
+$eval->context('scalar');
+
+is($eval->eval('$y->(2)'), '3', 'Scalar eval ok');
+
done_testing;