diff options
author | Robin Houston <robin@cpan.org> | 2001-12-18 14:54:33 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2001-12-18 13:55:12 +0000 |
commit | c682d774b5d37972d8e89f9a7989e8824be55be4 (patch) | |
tree | 02587a7b854e2d0afa6faca2e2315b2c13602374 /t | |
parent | fa1bb02feecc6f4fdaff36b2895f96803af07c6a (diff) | |
download | perl-c682d774b5d37972d8e89f9a7989e8824be55be4.tar.gz |
Third time lucky? (Re: [PATCH] ...while $var = glob(...))
Message-ID: <20011218145433.A18835@puffinry.freeserve.co.uk>
p4raw-id: //depot/perl@13749
Diffstat (limited to 't')
-rwxr-xr-x | t/op/glob.t | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/t/op/glob.t b/t/op/glob.t index 064202d68e..c18ee2f537 100755 --- a/t/op/glob.t +++ b/t/op/glob.t @@ -5,7 +5,7 @@ BEGIN { @INC = '../lib'; } -print "1..10\n"; +print "1..11\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; |