[Bast-commits] r3765 - trunk/Devel-REPL/lib/Devel/REPL/Plugin
Sartak at dev.catalyst.perl.org
Sartak at dev.catalyst.perl.org
Fri Sep 21 05:07:48 GMT 2007
Author: Sartak
Date: 2007-09-21 05:07:48 +0100 (Fri, 21 Sep 2007)
New Revision: 3765
Modified:
trunk/Devel-REPL/lib/Devel/REPL/Plugin/Colors.pm
Log:
Color compile-time warnings
Modified: trunk/Devel-REPL/lib/Devel/REPL/Plugin/Colors.pm
===================================================================
--- trunk/Devel-REPL/lib/Devel/REPL/Plugin/Colors.pm 2007-09-21 03:48:48 UTC (rev 3764)
+++ trunk/Devel-REPL/lib/Devel/REPL/Plugin/Colors.pm 2007-09-21 04:07:48 UTC (rev 3765)
@@ -35,7 +35,7 @@
# get $self, so we localize $SIG{__WARN__} during eval so it can get
# error_color
-around execute => sub {
+sub _wrap_warn {
my $orig = shift;
my $self = shift;
@@ -51,6 +51,9 @@
$orig->($self, @_);
};
+around compile => \&_wrap_warn;
+around execute => \&_wrap_warn;
+
1;
__END__
More information about the Bast-commits
mailing list