make "perl -c script/re.pl" not start up the REPL
[p5sagit/Devel-REPL.git] / lib / Devel / REPL / Plugin / NewlineHack.pm
index 96a464f..03421cf 100644 (file)
@@ -1,19 +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::autoclean;
 
-use Data::Dumper;
+warn <<EOW;
+No longer required, extra newline automatically produced for Gnu readline
+implementation by Devel::REPL's print() method.
 
-after 'print' => 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;
 
+__END__
+
+=head1 NAME
+
+Devel::REPL::Plugin::NewlineHack - (deprecated)
+
+=cut
+