Added Plugin/NewlineHack, simple plugin to print a newline after output
[p5sagit/Devel-REPL.git] / lib / Devel / REPL / Plugin / NewlineHack.pm
CommitLineData
f254750a 1# Adds a newline after print. Some readlines need it some don't. I guess
2# we should clarify whether this is a bug and if so whose bug at some point
3# but this'll do for now ;)
4
5package Devel::REPL::Plugin::NewlineHack;
6
7use Moose::Role;
8
9use Data::Dumper;
10
11after 'print' => sub {
12 # not fussed about args
13 my ($self) = @_;
14 my $fh = $self->out_fh;
15 print $fh "\n";
16};
17
181;
19