From: matthewt Date: Fri, 20 Jun 2008 18:55:06 +0000 (+0000) Subject: fix from Sartak for end-of-line comment bug reported by jrockway X-Git-Tag: v1.003015~84 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=p5sagit%2FDevel-REPL.git;a=commitdiff_plain;h=46407908bb18019c66a5035bb6fc22549f704967 fix from Sartak for end-of-line comment bug reported by jrockway git-svn-id: http://dev.catalyst.perl.org/repos/bast/trunk/Devel-REPL@4508 bd8105ee-0ff8-0310-8827-fb3f25b6796d --- diff --git a/lib/Devel/REPL/Plugin/Packages.pm b/lib/Devel/REPL/Plugin/Packages.pm index 14c0f60..a2b3fcd 100644 --- a/lib/Devel/REPL/Plugin/Packages.pm +++ b/lib/Devel/REPL/Plugin/Packages.pm @@ -26,7 +26,8 @@ around 'mangle_line' => sub { my $line = $self->$orig(@args); # add a BEGIN block to set the package around at the end of the sub # without mangling the return value (we save it off into a global) - $line .= '; BEGIN { $Devel::REPL::Plugin::Packages::PKG_SAVE = __PACKAGE__; }'; + $line .= ' +; BEGIN { $Devel::REPL::Plugin::Packages::PKG_SAVE = __PACKAGE__; }'; return $line; };