X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDevel%2FREPL.pm;h=3752fd40076c5dc0fbce8cc92ce8e053bce7c728;hb=13e18b1bb05bc06da163f0077f135e34bf4b2c39;hp=b096f9b85c3c1a062a0c7b85c7c503a92dd0f1c1;hpb=85cd27808a3e9294c1b5345fb5bbca046821933d;p=p5sagit%2FDevel-REPL.git diff --git a/lib/Devel/REPL.pm b/lib/Devel/REPL.pm index b096f9b..3752fd4 100644 --- a/lib/Devel/REPL.pm +++ b/lib/Devel/REPL.pm @@ -3,6 +3,9 @@ package Devel::REPL; use Term::ReadLine; use Moose; use namespace::clean -except => [ 'meta' ]; +use 5.8.1; # might work with earlier perls but probably not + +our $VERSION = '1.001000'; # 1.1.0 with 'MooseX::Object::Pluggable'; @@ -82,7 +85,32 @@ sub error_return { sub print { my ($self, @ret) = @_; my $fh = $self->out_fh; + no warnings 'uninitialized'; print $fh "@ret"; } +=head1 NAME + +Devel::REPL - a modern perl interactive shell + +=head1 SYNOPSIS + + my $repl = Devel::REPL->new; + $repl->load_plugin($_) for qw(History LexEnv); + $repl->run + +Alternatively, use the 're.pl' script installed with the distribution + + system$ re.pl + +=head1 AUTHOR + +Matt S Trout - mst (at) shadowcatsystems.co.uk (L) + +=head1 LICENSE + +This library is free software under the same terms as perl itself + +=cut + 1;