X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=p5sagit%2FDevel-REPL.git;a=blobdiff_plain;f=lib%2FDevel%2FREPL%2FPlugin%2FOutputCache.pm;h=4115fa8b719dc623176bc301b21408a65a004b6e;hp=38374e8707216a055fd7cceb14d7ac80ca5ec740;hb=8d5343b5f1fb9e3b33d1d36e96aabc94e29a822b;hpb=588f0734817915ab4f5763831e7f4ca45c235ce2 diff --git a/lib/Devel/REPL/Plugin/OutputCache.pm b/lib/Devel/REPL/Plugin/OutputCache.pm index 38374e8..4115fa8 100644 --- a/lib/Devel/REPL/Plugin/OutputCache.pm +++ b/lib/Devel/REPL/Plugin/OutputCache.pm @@ -1,7 +1,9 @@ +use strict; +use warnings; package Devel::REPL::Plugin::OutputCache; -use Moose::Role; -use namespace::clean -except => [ 'meta' ]; +use Devel::REPL::Plugin; +use namespace::autoclean; has output_cache => ( is => 'rw', @@ -73,7 +75,7 @@ your result instead of having to type it in all at once, or store it in intermediate variables. C also provides C<< $_REPL->output_cache >>, an array reference of all results in this session. -Devel::REPL already has a similar plugin, L. +L already has a similar plugin, L. There are some key differences though: =over 4 @@ -101,7 +103,7 @@ does the parsing -- no surprises. The C<_> sub is shared across all packages. This means that if a module is using the C<_> sub, then there is a conflict and you should not use this -plugin. For example, L uses the C<_> sub for localization. Jifty is the +plugin. For example, L uses the C<_> sub for localization. L is the only known user. =head1 SEE ALSO