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=3e166ef7ef9af0a4249674edd5988e2a43ece8e3;hp=c550a01c7f3a06ff648915de908509beaf9df5db;hb=85d432197307f6580c65e7868bc089173f72ca13;hpb=577190956fdbf84c17da73d3cdab183309542c9b diff --git a/lib/Devel/REPL.pm b/lib/Devel/REPL.pm index c550a01..3e166ef 100644 --- a/lib/Devel/REPL.pm +++ b/lib/Devel/REPL.pm @@ -2,10 +2,10 @@ package Devel::REPL; use Term::ReadLine; use Moose; -use namespace::clean -except => [ 'meta' ]; +use namespace::autoclean; use 5.008001; # backwards compat, doesn't warn like 5.8.1 -our $VERSION = '1.003009_02'; # 1.3.9_02 +our $VERSION = '1.003016'; with 'MooseX::Object::Pluggable'; @@ -186,8 +186,8 @@ message will be returned. Here are a few examples: 1 $_ nosuchfunction Compile error: Bareword "nosuchfunction" not allowed while "strict subs" in use at (eval 130) line 5. - - $_ + + $_ In the first example above you see the output of the command (C), if any, and then the return value of the statement (C<1>). Following @@ -214,16 +214,20 @@ exported functions from that module are available for immediate use: (Do you need to predeclare carp?) Compile error: syntax error at (eval 129) line 5, near "carp "I'm dieeeing!\n"" BEGIN not safe after errors--compilation aborted at (eval 129) line 5. - - $_ use Carp - + + $_ use Carp + $_ carp "I'm dieeeing!\n" I'm dieeeing! at /usr/share/perl5/Lexical/Persistence.pm line 327 1 - $_ + $_ + +To quit from the shell, hit C or C. + + MSWin32 NOTE: control keys won't work if TERM=dumb + because readline functionality will be disabled. -To quit from the shell, hit C or C. =head2 Run Control Files @@ -283,6 +287,34 @@ L L +=item * + +L + +=item * + +L + +=item * + +L + +=item * + +L + +=item * + +L + +=item * + +L + +=item * + +L + =back =head2 Plugins @@ -295,7 +327,9 @@ output, or even add commands to the shell environment. A number of plugins ship with C, and more are available on the CPAN. Some of the shipped plugins are loaded in the default profile, mentioned -above. +above. These plugins can be loaded in your C<< $HOME/.re.pl/repl.rc >> like: + + load_plugin qw( CompletionDriver::Global DumpHistory ); Writing your own plugins is not difficult, and is discussed in the L manual page, along with links to the manual pages of @@ -328,7 +362,7 @@ the following: =item * -L >= 0.64 +L >= 0.74 =item * @@ -336,23 +370,31 @@ L >= 0.0009 =item * -L >= 0.15 +L >= 0.18 =item * -L >= 0.14 +L =item * -L +L =item * -L +L =item * -L +L + +=item * + +L + +=item * + +L =back @@ -370,10 +412,18 @@ L =item * +L + +=item * + L =item * +L + +=item * + L =item * @@ -416,6 +466,8 @@ Matt S Trout - mst (at) shadowcatsystems.co.uk (L >> +=item Chris Marshall + =back =head1 LICENSE