X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=p5sagit%2FEval-WithLexicals.git;a=blobdiff_plain;f=lib%2FEval%2FWithLexicals.pm;h=e462063d8e0959c8b537c7c563dcb3df91c3a944;hp=e4f75871772a82c299254c8d893af215322d16e3;hb=3fb66cc7c134ee8da56ac1378d87eb653c7b7619;hpb=235f639907b987b1071de49449145e6d312768ef diff --git a/lib/Eval/WithLexicals.pm b/lib/Eval/WithLexicals.pm index e4f7587..e462063 100644 --- a/lib/Eval/WithLexicals.pm +++ b/lib/Eval/WithLexicals.pm @@ -224,6 +224,25 @@ Code to run before evaling code. Loads L by default. $eval->prelude(q{use warnings}); # only warnings, not strict. +=head2 with_plugins + + my $eval = Eval::WithLexicals->with_plugins("HintPersistence")->new; + +Construct a class with the given plugins. Plugins are roles located under +a package name like C. + +Current plugins are: + +=over 4 + +=item * HintPersistence + +When enabled this will persist pragams and other compile hints between evals +(for example the L and L flags in effect). See +L for further details. + +=back + =head1 AUTHOR Matt S. Trout