Subject: | Nopaste plugin patch for undef value and error messages |
Date: | Thu, 29 Jan 2009 21:13:35 +0100 |
To: | bug-Devel-REPL [...] rt.cpan.org |
From: | Stoned Elipot <seb [...] univ-paris-diderot.fr> |
Hi,
Devel-REPL's plugin Nopaste does not handle undef value and
error messages. For example:
$ uname -srm
Darwin 9.6.0 i386
$ perl --version | head -2
This is perl, v5.10.0 built for darwin-thread-multi-2level
$ re.pl --rcfile /dev/null
$ $_REPL->load_plugin('Nopaste')
1
$ undef
Use of uninitialized value $ret[0] in join or string at /usr/pkg/lib/perl5/vendor_perl/5.10.0/Devel/REPL/Plugin/Nopaste.pm line
39.
$ foo
Compile error: Bareword "foo" not allowed while "strict subs" in use at
(eval 346) line 5.
$
Attached you'll find a patch against Devel-REPL's svn repository trunk
adding to the Nopaste plugin the ability to handle undef
value and error message.
Cheers, Stoned.
Message body is not shown because sender requested not to inline it.