X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=p5sagit%2FDevel-REPL.git;a=blobdiff_plain;f=lib%2FDevel%2FREPL%2FOverview.pod;h=a71fd23ce842f7ed7dfaf50e7b23f004cad8a31f;hp=cb36a93a01544dc67ef7370af2bd40660b21971b;hb=584978c990ea260400f416af78fe316f5fa7f0d2;hpb=a2a19b0aa298b778c59d7d30e56d509725a7da85 diff --git a/lib/Devel/REPL/Overview.pod b/lib/Devel/REPL/Overview.pod index cb36a93..a71fd23 100644 --- a/lib/Devel/REPL/Overview.pod +++ b/lib/Devel/REPL/Overview.pod @@ -31,7 +31,7 @@ You can even call a console in your script and play around in script's context =back -For Ruby it would be irb, for Python is... python byitself and for perl... +For Ruby it would be irb, for Python is... python by itself and for perl... and there was nothing for perl (except that ugly perl -d -e "" and several failed projects) until Devel::REPL was written by Matt S Trout (a.k.a. mst) from ShadowCatSystems L. @@ -165,7 +165,7 @@ and you don't want to type path, you can: =head2 I want it to bark, fly, jump and swim! or Plugins -Plugins extend functionality and change behavor of Devel::REPL. +Plugins extend functionality and change behavior of Devel::REPL. Bundled plugins are: =over 2 @@ -226,15 +226,14 @@ There are lots of contributed plugins you can find at CPAN. If plugins change and extend functionality of Devel::REPL, profiles are changing your environment (loaded plugins, constants, subs and etc.). -There's only one bundled profile called `Devel::REPL::Profile::Default`, lets -take a look at it: +For example, the Minimal profile, `Devel::REPL::Profile::Minimal`: - package Devel::REPL::Profile::Default; + package Devel::REPL::Profile::Minimal; use Moose; ### advanced OOP system for Perl ### keep those exports/imports out of our namespace - use namespace::clean -except => [ 'meta' ]; + use namespace::autoclean; with 'Devel::REPL::Profile'; ## seem perldoc Muse @@ -246,18 +245,24 @@ take a look at it: ### it is called on profile activation sub apply_profile { my ($self, $repl) = @_; - ### $self - no comments, $repl - current instance of Devel::REPL + ### $self - no comments, $repl - current instance of Devel::REPL $repl->load_plugin($_) for $self->plugins; ### load our plugins } 1; -At the moment there are no profiles on CPAN. Mostly you'll use control files. +There is also the 'Standard' profile, which contains a number of optional (yet +very useful) features. + To enable some profile use --profile switch: $ re.pl --profile SomeProfile +Alternatively, you can set the environment variable C to +C, or set the C key in your C (see +L for more information). + =head1 See Also L, L, L