source: trunk/essentials/dev-lang/perl/lib/strict.t@ 3184

Last change on this file since 3184 was 3181, checked in by bird, 19 years ago

perl 5.8.8

File size: 3.2 KB
Line 
1#!./perl
2
3BEGIN {
4 chdir 't' if -d 't';
5 @INC = '../lib';
6 $ENV{PERL5LIB} = '../lib';
7}
8
9$| = 1;
10
11my $Is_VMS = $^O eq 'VMS';
12my $Is_MSWin32 = $^O eq 'MSWin32';
13my $Is_NetWare = $^O eq 'NetWare';
14my $tmpfile = "tmp0000";
15my $i = 0 ;
161 while -e ++$tmpfile;
17END { if ($tmpfile) { 1 while unlink $tmpfile; } }
18
19my @prgs = () ;
20
21foreach (sort glob($^O eq 'MacOS' ? ":lib:strict:*" : "lib/strict/*")) {
22
23 next if -d || /(~|\.orig|,v)$/;
24
25 open F, "<$_" or die "Cannot open $_: $!\n" ;
26 while (<F>) {
27 last if /^__END__/ ;
28 }
29
30 {
31 local $/ = undef;
32 @prgs = (@prgs, split "\n########\n", <F>) ;
33 }