X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=p5sagit%2FDevel-REPL.git;a=blobdiff_plain;f=lib%2FDevel%2FREPL%2FPlugin%2FCompletionDriver%2FGlobals.pm;h=c2e1c74c0e21d5e7f34e6cb70c5cb7be8664e72a;hp=df2f900d077ebe55488c4346419811d73774bb17;hb=afc8677b078de3f125147caf731bd298c8b6d04e;hpb=cfd1094b45c394258ccda08216f1435bf40e1d50 diff --git a/lib/Devel/REPL/Plugin/CompletionDriver/Globals.pm b/lib/Devel/REPL/Plugin/CompletionDriver/Globals.pm index df2f900..c2e1c74 100644 --- a/lib/Devel/REPL/Plugin/CompletionDriver/Globals.pm +++ b/lib/Devel/REPL/Plugin/CompletionDriver/Globals.pm @@ -1,6 +1,13 @@ +use strict; +use warnings; package Devel::REPL::Plugin::CompletionDriver::Globals; use Devel::REPL::Plugin; -use namespace::clean -except => [ 'meta' ]; +use namespace::autoclean; + +sub BEFORE_PLUGIN { + my $self = shift; + $self->load_plugin('Completion'); +} around complete => sub { my $orig = shift; @@ -56,5 +63,9 @@ __END__ Devel::REPL::Plugin::CompletionDriver::Globals - Complete global variables, packages, namespaced functions +=head1 AUTHOR + +Shawn M Moore, C<< >> + =cut