Craig A. Berry [Thu, 2 Apr 2009 17:30:54 +0000 (12:30 -0500)]
-- index returns -1, not false when substring not found.
-- 2 tests in the block, not 1.
for (split //, "rwxoRWXOezsfdlpSbcugkMCA") {
SKIP: {
- $^O eq "VMS" and index "rwxRWX", $_
- and skip "File::stat ignores VMS ACLs", 1;
+ $^O eq "VMS" and index("rwxRWX", $_) >= 0
+ and skip "File::stat ignores VMS ACLs", 2;
my $rv = eval "-$_ \$stat";
ok( !$@, "-$_ overload succeeds" )