summaryrefslogtreecommitdiff
path: root/lib/warnings/8signal
diff options
context:
space:
mode:
Diffstat (limited to 'lib/warnings/8signal')
-rw-r--r--lib/warnings/8signal18
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/warnings/8signal b/lib/warnings/8signal
new file mode 100644
index 0000000000..cc1b9d926d
--- /dev/null
+++ b/lib/warnings/8signal
@@ -0,0 +1,18 @@
+Check interaction of __WARN__, __DIE__ & lexical Warnings
+
+TODO
+
+__END__
+# 8signal
+BEGIN { $| = 1; $SIG{__WARN__} = sub { print "WARN -- @_" } }
+BEGIN { $SIG{__DIE__} = sub { print "DIE -- @_" } }
+$a =+ 1 ;
+use warnings qw(syntax) ;
+$a =+ 1 ;
+use warnings FATAL => qw(syntax) ;
+$a =+ 1 ;
+print "The End.\n" ;
+EXPECT
+WARN -- Reversed += operator at - line 6.
+DIE -- Reversed += operator at - line 8.
+Reversed += operator at - line 8.