10 @oops = @ops = <op/*>;
12 if ($^O eq 'MSWin32') {
13 map { $files{lc($_)}++ } <op/*>;
14 map { delete $files{"op/$_"} } split /[\s\n]/, `dir /b /l op & dir /b /l /ah op 2>nul`,
16 elsif ($^O eq 'VMS') {
17 map { $files{lc($_)}++ } <[.op]*>;
18 map { s/;.*$//; delete $files{lc($_)}; } split /[\n]/, `directory/noheading/notrailing/versions=1 [.op]`,
21 map { $files{$_}++ } <op/*>;
22 map { delete $files{$_} } split /[\s\n]/, `echo op/*`;
25 print "not ok 1\t(",join(' ', sort keys %files),"\n";
26 } else { print "ok 1\n"; }
28 print $/ eq "\n" ? "ok 2\n" : "not ok 2\n";
30 while (<jskdfjskdfj* op/* jskdjfjkosvk*>) {
31 $not = "not " unless $_ eq shift @ops;
32 $not = "not at all " if $/ eq "\0";
36 print $/ eq "\n" ? "ok 4\n" : "not ok 4\n";
38 # test the "glob" operator
41 print "@glops" eq "@oops" ? "ok 5\n" : "not ok 5\n";
44 print "@glops" eq "@oops" ? "ok 6\n" : "not ok 6\n";
46 # glob should still work even after the File::Glob stash has gone away
47 # (this used to dump core)
54 print $i == 2 ? "ok 7\n" : "not ok 7\n";
56 # ... while ($var = glob(...)) should test definedness not truth
58 my $ok = "not ok 8\n";
59 $ok = "ok 8\n" while my $var = glob("0");
62 # The formerly-broken test for the situation above would accidentally
63 # test definedness for an assignment with a LOGOP on the right:
66 $ok="not ok 9\n", undef $f while $x = $f||$f;