X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=p5sagit%2FDevel-REPL.git;a=blobdiff_plain;f=lib%2FDevel%2FREPL.pm;h=9b16f543f264184f161892217ee81952594d423c;hp=c174bbd4d164f08cf246f2f3075b68f4330adf00;hb=0e0d2539048eade7dfa30fff6f1ad5b7e90bbf70;hpb=b595a818b1d89dbea55ace1af86d0df91c97ba0c diff --git a/lib/Devel/REPL.pm b/lib/Devel/REPL.pm index c174bbd..9b16f54 100644 --- a/lib/Devel/REPL.pm +++ b/lib/Devel/REPL.pm @@ -5,14 +5,13 @@ use Moose; use namespace::autoclean; use 5.008001; # backwards compat, doesn't warn like 5.8.1 -our $VERSION = '1.003017'; - with 'MooseX::Object::Pluggable'; use Devel::REPL::Error; has 'term' => ( is => 'rw', + lazy => 1, default => sub { Term::ReadLine->new('Perl REPL') } ); @@ -246,7 +245,7 @@ filename like so: system$ re.pl --rcfile myproject.pc -If the filename happens to contain a forwardslash, then it's used absolutely, +If the filename happens to contain a forward slash, then it's used absolutely, or realive to the current working directory: system$ re.pl --rcfile /path/to/my/project/repl.rc @@ -320,7 +319,7 @@ L =head2 Plugins -Plugins are a way to add funcionality to the REPL shell, and take advantage of +Plugins are a way to add functionality to the REPL shell, and take advantage of C being based on the L object system for Perl 5. This means it's simple to 'hook into' many steps of the R-E-P-L process. Plugins can change the way commands are interpreted, or the way their results are @@ -469,6 +468,8 @@ Matt S Trout - mst (at) shadowcatsystems.co.uk (L >> + =back =head1 LICENSE