3 package Devel::REPL::Plugin::Peek;
5 our $VERSION = '1.003027';
7 use Devel::REPL::Plugin;
8 use Devel::Peek qw(Dump);
9 use namespace::autoclean;
13 $self->load_plugin('Turtles');
16 sub expr_command_peek {
17 my ( $self, $eval, $code ) = @_;
19 my @res = $self->eval($code);
21 if ( $self->is_error(@res) ) {
22 return $self->format(@res);
24 # can't override output properly
25 # FIXME do some dup wizardry
27 return ""; # this is a hack to print nothing after Dump has already printed. PLZ TO FIX KTHX!
39 Devel::REPL::Plugin::Peek - L<Devel::Peek> plugin for L<Devel::REPL>.
44 SV = PV(0xb3dba0) at 0xb4abc0
46 FLAGS = (POK,READONLY,pPOK)
47 PV = 0x12bcf70 "foo"\0
53 This L<Devel::REPL::Plugin> adds a C<peek> command that calls
54 L<Devel::Peek/Dump> instead of the normal printing.
58 L<Devel::REPL>, L<Devel::Peek>
62 Yuval Kogman E<lt>nothingmuch@woobling.orgE<gt>