X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=p5sagit%2FDevel-REPL.git;a=blobdiff_plain;f=lib%2FDevel%2FREPL%2FProfile.pm;h=91d6927e78ac658d91a4158c3ff66b9b678f1c8a;hp=b449c54dcd2d0db0fde47dc3890eb37fd91c8825;hb=e2d0b0198529e2e06593df8ebab7a8413bc932e1;hpb=a4dd2d8933ca2a9b4f627dfe6d03d679171372e4 diff --git a/lib/Devel/REPL/Profile.pm b/lib/Devel/REPL/Profile.pm index b449c54..91d6927 100644 --- a/lib/Devel/REPL/Profile.pm +++ b/lib/Devel/REPL/Profile.pm @@ -1,7 +1,6 @@ package Devel::REPL::Profile; -use Moose::Role; -use namespace::clean -except => [ 'meta' ]; +use Moo::Role; requires 'apply_profile'; @@ -13,8 +12,8 @@ Devel::REPL::Profile package Devel::REPL::Profile::MyProject; - use Moose; - use namespace::clean -except => [ 'meta' ]; + use Moo; + use namespace::sweep; with 'Devel::REPL::Profile'; @@ -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 to +MyProject. + When the profile name is unqualified, as in the above example, the profile is assumed to be in the C namespace. Otherwise if you pass something which contains the C<::> character sequence, it will be loaded