projects
/
platform
/
upstream
/
perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa1bb02
)
Third time lucky? (Re: [PATCH] ...while $var = glob(...))
author
Robin Houston
<robin@cpan.org>
Tue, 18 Dec 2001 14:54:33 +0000
(14:54 +0000)
committer
Jarkko Hietaniemi
<jhi@iki.fi>
Tue, 18 Dec 2001 13:55:12 +0000
(13:55 +0000)
Message-ID: <
20011218145433
.A18835@puffinry.freeserve.co.uk>
p4raw-id: //depot/perl@13749
t/op/glob.t
patch
|
blob
|
history
diff --git
a/t/op/glob.t
b/t/op/glob.t
index
064202d
..
c18ee2f
100755
(executable)
--- a/
t/op/glob.t
+++ b/
t/op/glob.t
@@
-5,7
+5,7
@@
BEGIN {
@INC = '../lib';
}
-print "1..1
0
\n";
+print "1..1
1
\n";
@oops = @ops = <op/*>;
@@
-60,6
+60,12
@@
print open(F, ">0") ? "ok 8\n" : "not ok 8 # $!\n";
close F;
my $ok = "not ok 9\n";
+
+# ... while ($var = glob(...)) should test definedness not truth
+
+my $ok = "not ok 11\n";
+$ok = "ok 11\n" while my $var = glob("0");
+print $ok;
$ok = "ok 9\n" while my $var = glob("0");
print $ok;