X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=p5sagit%2FDevel-REPL.git;a=blobdiff_plain;f=lib%2FDevel%2FREPL%2FPlugin%2FDumpHistory.pm;h=c1d449d441ae616ebf7138776aa1e14c413afee7;hp=ed6e42ba1b718fb3a0bcc77754e48792742d3734;hb=afc8677b078de3f125147caf731bd298c8b6d04e;hpb=6a5409bc859187db7d7553e4c19a559aeeba6430 diff --git a/lib/Devel/REPL/Plugin/DumpHistory.pm b/lib/Devel/REPL/Plugin/DumpHistory.pm index ed6e42b..c1d449d 100644 --- a/lib/Devel/REPL/Plugin/DumpHistory.pm +++ b/lib/Devel/REPL/Plugin/DumpHistory.pm @@ -1,10 +1,12 @@ +use strict; +use warnings; package Devel::REPL::Plugin::DumpHistory; use Devel::REPL::Plugin; -use namespace::clean -except => [ 'meta' ]; +use namespace::autoclean; ## Seems to be a sequence issue with requires -# requires qw{ history }; +# requires qw{ history }; around 'read' => sub { my $orig = shift; @@ -48,9 +50,6 @@ the history. =head1 SYNOPSIS - #!/usr/bin/perl - - use lib './lib'; use Devel::REPL; my $repl = Devel::REPL->new; @@ -61,7 +60,7 @@ the history. =head1 DESCRIPTION -Plugin that adds the C<:dump> and C<:dump file_name> commands to the +Plugin that adds the C<:dump> and C<:dump file_name> commands to the repl which will print the history to STDOUT or append the history to the file given.