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=03421cf11e51b9b0d23d7d7e513dc35974cb5953;hp=076b8ac5401e851f704a513249ad671b1ba39992;hb=8aca97943211d3610be7c46a2602f7237aae5b70;hpb=48ddfeae8a9840b39113a97c4889bfe210509cdd diff --git a/lib/Devel/REPL/Plugin/NewlineHack.pm b/lib/Devel/REPL/Plugin/NewlineHack.pm index 076b8ac..03421cf 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 namespace::clean -except => [ 'meta' ]; +use Devel::REPL::Plugin; +use namespace::autoclean; -after 'print' => sub { - # not fussed about args - my ($self) = @_; - my $fh = $self->out_fh; - print $fh "\n"; -}; +warn <