summaryrefslogtreecommitdiff
path: root/t/pragma/warn/8signal
blob: 0be2d13cc02928d5a9aac61426c4bfabdecd1597 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Check interaction of __WARN__, __DIE__ & lexical Warnings

TODO

__END__
# 8signal
BEGIN { $SIG{__WARN__} = sub { print "WARN -- @_" } }
BEGIN { $SIG{__DIE__}  = sub { print "DIE -- @_" } }
1 if 1 EQ 2 ;
use warnings qw(deprecated) ;
1 if 1 EQ 2 ;
use warnings FATAL => qw(deprecated) ;
1 if 1 EQ 2 ;
print "The End.\n" ;
EXPECT
Use of EQ is deprecated at - line 8.
WARN -- Use of EQ is deprecated at - line 6.
DIE -- Use of EQ is deprecated at - line 8.