git-svn-id: http://dev.catalyst.perl.org/repos/bast/trunk/Devel-REPL@3865
bd8105ee-0ff8-0310-8827-fb3f25b6796d
--- /dev/null
+ - deprecate NewlineHack plugin, cause fixed in REPL.pm
+1.1.0
+ - profile system
+ - fix up dependencies
+ - DDS plugin
+ - Commands plugin
+ - Plugin metaclass
+1.0.0
+ - Initial release
my $line = $self->read;
return unless defined($line); # undefined value == EOF
my @ret = $self->eval($line);
- $self->print(@ret);
+ eval {
+ $self->print(@ret);
+ };
+ if ($@) {
+ my $error = $@;
+ eval { $self->print("Error printing! - $error\n"); };
+ }
return 1;
}
my $fh = $self->out_fh;
no warnings 'uninitialized';
print $fh "@ret";
+ print $fh "\n" if $self->term->ReadLine =~ /Gnu/;
}
=head1 NAME
+# Original comment:
+#
# Adds a newline after print. Some readlines need it some don't. I guess
# we should clarify whether this is a bug and if so whose bug at some point
# but this'll do for now ;)
use Moose::Role;
use namespace::clean -except => [ 'meta' ];
-after 'print' => sub {
- # not fussed about args
- my ($self) = @_;
- my $fh = $self->out_fh;
- print $fh "\n";
-};
+warn <<EOW;
+No longer required, extra newline automatically produced for Gnu readline
+implementation by Devel::REPL's print() method.
+
+This plugin will be removed at some point; please remove it from your config.
+EOW
1;