projects
/
p5sagit/Eval-WithLexicals.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Add persistent hints
[p5sagit/Eval-WithLexicals.git]
/
lib
/
Eval
/
WithLexicals
/
Role
/
PreludeEachTime.pm
diff --git a/lib/Eval/WithLexicals/Role/PreludeEachTime.pm
b/lib/Eval/WithLexicals/Role/PreludeEachTime.pm
new file mode 100644
(file)
index 0000000..
4f5981e
--- /dev/null
+++ b/
lib/Eval/WithLexicals/Role/PreludeEachTime.pm
@@ -0,0
+1,10
@@
+package Eval::WithLexicals::Role::PreludeEachTime;
+use Moo::Role;
+
+around setup_code => sub {
+ my $orig = shift;
+ my($self) = @_;
+ ($self->prelude, $orig->(@_));
+};
+
+1;