glob.t revision 7c478bd95313f5f23a4c958a745db2134aa03244
#!./perl
BEGIN {
chdir 't' if -d 't';
}
print "1..10\n";
}
map { s/;.*$//; delete $files{lc($_)}; } split /[\n]/, `directory/noheading/notrailing/versions=1 [.op]`,
}
}
else {
}
} else { print "ok 1\n"; }
}
} else {
}
}
print "${not}ok 3\n";
# test the "glob" operator
@glops = glob $_;
@glops = glob;
# glob should still work even after the File::Glob stash has gone away
# (this used to dump core)
my $i = 0;
for (1..2) {
eval "<.>";
++$i;
}
print $i == 2 ? "ok 7\n" : "not ok 7\n";
# ... while ($var = glob(...)) should test definedness not truth
print $ok;
}
else {
print "ok 8 # skip: File::Glob emulated Unixism\n";
}
# The formerly-broken test for the situation above would accidentally
# test definedness for an assignment with a LOGOP on the right:
my $f=0;
print $ok;
# Better check that glob actually returned some entries
{
print "${not}ok 10\n";
}