X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=p5sagit%2FDevel-REPL.git;a=blobdiff_plain;f=lib%2FDevel%2FREPL%2FPlugin%2FNewlineHack.pm;h=8f2a29dec39e50539d567b8c881dd563e73b3bf9;hp=076b8ac5401e851f704a513249ad671b1ba39992;hb=6a5409bc859187db7d7553e4c19a559aeeba6430;hpb=48ddfeae8a9840b39113a97c4889bfe210509cdd diff --git a/lib/Devel/REPL/Plugin/NewlineHack.pm b/lib/Devel/REPL/Plugin/NewlineHack.pm index 076b8ac..8f2a29d 100644 --- a/lib/Devel/REPL/Plugin/NewlineHack.pm +++ b/lib/Devel/REPL/Plugin/NewlineHack.pm @@ -1,18 +1,28 @@ +# 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 ;) package Devel::REPL::Plugin::NewlineHack; -use Moose::Role; +use Devel::REPL::Plugin; use namespace::clean -except => [ 'meta' ]; -after 'print' => sub { - # not fussed about args - my ($self) = @_; - my $fh = $self->out_fh; - print $fh "\n"; -}; +warn <