X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDevel%2FREPL%2FPlugin%2FHistory.pm;h=c3e63c06c043e9564af6094cca99274fb1add377;hb=54beb05dd302b5e166bf46c888318527e13375c7;hp=8d77d05ddfaabe9cdcfeadd17cec5b068f2fd256;hpb=aa8b764738156914d48d182ee0706e4c3d4e5c99;p=p5sagit%2FDevel-REPL.git diff --git a/lib/Devel/REPL/Plugin/History.pm b/lib/Devel/REPL/Plugin/History.pm index 8d77d05..c3e63c0 100644 --- a/lib/Devel/REPL/Plugin/History.pm +++ b/lib/Devel/REPL/Plugin/History.pm @@ -1,16 +1,22 @@ +use strict; +use warnings; package Devel::REPL::Plugin::History; +our $VERSION = '1.003027'; + use Devel::REPL::Plugin; use namespace::autoclean; has 'history' => ( - isa => 'ArrayRef', is => 'rw', required => 1, lazy => 1, + isa => 'ArrayRef', is => 'rw', + lazy => 1, default => sub { [] } ); # lazy so ReadLineHistory Plugin can set this has 'have_readline_history' => ( - is => 'rw', required => 1, lazy => 1, + is => 'rw', + lazy => 1, default => sub { 0 } );