X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDevel%2FREPL%2FPlugin%2FNewlineHack.pm;h=1945199199ecb610f21e2c887cab6334e4852e8e;hb=d13b1087ff1a7c97ac6edb2dd9e11bdd50e8c13c;hp=96a464f8b33914773723273845ae1198273848ec;hpb=f254750a4425f47eca1923f7e44b3b53b3c71104;p=p5sagit%2FDevel-REPL.git diff --git a/lib/Devel/REPL/Plugin/NewlineHack.pm b/lib/Devel/REPL/Plugin/NewlineHack.pm index 96a464f..1945199 100644 --- a/lib/Devel/REPL/Plugin/NewlineHack.pm +++ b/lib/Devel/REPL/Plugin/NewlineHack.pm @@ -1,3 +1,5 @@ +# 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 ;) @@ -5,15 +7,14 @@ package Devel::REPL::Plugin::NewlineHack; use Moose::Role; +use namespace::clean -except => [ 'meta' ]; -use Data::Dumper; +warn < sub { - # not fussed about args - my ($self) = @_; - my $fh = $self->out_fh; - print $fh "\n"; -}; +This plugin will be removed at some point; please remove it from your config. +EOW 1;