From: Robin Houston Date: Mon, 17 Dec 2001 20:27:30 +0000 (+0000) Subject: Re: [PATCH] ...while $var = glob(...) X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=9ea40b93a00f4a251037622d4c436d0ceda2caf3;p=p5sagit%2Fp5-mst-13.2.git Re: [PATCH] ...while $var = glob(...) Message-ID: <20011217202730.A17817@puffinry.freeserve.co.uk> Can't portably unlink open files. p4raw-id: //depot/perl@13744 --- diff --git a/t/op/glob.t b/t/op/glob.t index 96aab54..064202d 100755 --- a/t/op/glob.t +++ b/t/op/glob.t @@ -57,6 +57,8 @@ print $i == 2 ? "ok 7\n" : "not ok 7\n"; # Create a file called "0" print open(F, ">0") ? "ok 8\n" : "not ok 8 # $!\n"; +close F; + my $ok = "not ok 9\n"; $ok = "ok 9\n" while my $var = glob("0"); print $ok;