POD fix (RT#88886)
[p5sagit/Devel-REPL.git] / lib / Devel / REPL / Profile.pm
index b449c54..3ae853c 100644 (file)
@@ -1,28 +1,27 @@
 package Devel::REPL::Profile;
 
 use Moose::Role;
-use namespace::clean -except => [ 'meta' ];
 
 requires 'apply_profile';
 
 =head1 NAME
 
-Devel::REPL::Profile
+Devel::REPL::Profile - code to execute when re.pl starts
 
 =head1 SYNOPSIS
 
  package Devel::REPL::Profile::MyProject;
+
  use Moose;
- use namespace::clean -except => [ 'meta' ];
+ use namespace::autoclean;
+
  with 'Devel::REPL::Profile';
+
  sub apply_profile {
      my ($self, $repl) = @_;
      # do something here
  }
+
  1;
 
 =head1 DESCRIPTION
@@ -68,6 +67,9 @@ To run the shell with a particular profile, use the following command:
 
  system$ re.pl --profile MyProject
 
+Alternatively, you can set the environment variable C<DEVEL_REPL_PROFILE> to
+MyProject.
+
 When the profile name is unqualified, as in the above example, the profile is
 assumed to be in the C<Devel::REPL::Profile::> namespace. Otherwise if you
 pass something which contains the C<::> character sequence, it will be loaded