3 # Tests usage of deprecated Perl syntax. Deprecated could be extended to the
4 # sense of 'not allowed'.
8 use Test
::More tests
=> 1;
12 my @files_with_switch = do {
17 return if $dir =~ /blib/;
18 return unless /\.(pl|pm)$/; # Don't inspect non-Perl files
21 push @files, "$dir/$_" if $content =~ /switch\s
*\
(.*{/;
25 ok
( !@files_with_switch, "Perl syntax: no use of switch statement" )
26 or diag
( "Files list: " . join(', ', @files_with_switch) );