10 @oops = @ops = <op/*>;
12 if ($^O eq 'MSWin32') {
13 map { $files{lc($_)}++ } <op/*>;
14 map { delete $files{"op/$_"} } split /[\s\n]/, `cmd /c "dir /b /l op & dir /b /l /ah op 2>nul"`,
17 map { $files{$_}++ } <op/*>;
18 map { delete $files{$_} } split /[\s\n]/, `echo op/*`;
21 print "not ok 1\t(",join(' ', sort keys %files),"\n";
22 } else { print "ok 1\n"; }
24 print $/ eq "\n" ? "ok 2\n" : "not ok 2\n";
26 while (<jskdfjskdfj* op/* jskdjfjkosvk*>) {
27 $not = "not " unless $_ eq shift @ops;
28 $not = "not at all " if $/ eq "\0";
32 print $/ eq "\n" ? "ok 4\n" : "not ok 4\n";
34 # test the "glob" operator
37 print "@glops" eq "@oops" ? "ok 5\n" : "not ok 5\n";
40 print "@glops" eq "@oops" ? "ok 6\n" : "not ok 6\n";
42 # glob should still work even after the File::Glob stash has gone away
43 # (this used to dump core)
50 print $i == 2 ? "ok 7\n" : "not ok 7\n";