Move the locale/strict/warnings helper files back
[p5sagit/p5-mst-13.2.git] / t / lib / warnings / perly
CommitLineData
599cee73 1 perly.y AOK
2
3 dep() => deprecate("\"do\" to call subroutines")
4 Use of "do" to call subroutines is deprecated
5
6 sub fred {} do fred()
7 sub fred {} do fred(1)
8 sub fred {} $a = "fred" ; do $a()
9 sub fred {} $a = "fred" ; do $a(1)
10
11
12__END__
13# perly.y
4438c4b7 14use warnings 'deprecated' ;
599cee73 15sub fred {}
16do fred() ;
17do fred(1) ;
18$a = "fred" ;
19do $a() ;
20do $a(1) ;
4438c4b7 21no warnings 'deprecated' ;
0453d815 22do fred() ;
23do fred(1) ;
24$a = "fred" ;
25do $a() ;
26do $a(1) ;
599cee73 27EXPECT
28Use of "do" to call subroutines is deprecated at - line 4.
29Use of "do" to call subroutines is deprecated at - line 5.
30Use of "do" to call subroutines is deprecated at - line 7.
31Use of "do" to call subroutines is deprecated at - line 8.