in reply to Re: When does while() test for defined vs truth
in thread When does while() test for defined vs truth
That still doesn't explain the difference between the last two examples I gave:
Is that a bug, or should the two forms of while() behave differently?# This tests for definedness while($x = <*.pl>) {} # This tests for truthfulness 1 while($x = <*.pl>)
-Blake
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: When does while() test for defined vs truth
by japhy (Canon) on Dec 17, 2001 at 08:35 UTC | |
by blakem (Monsignor) on Dec 17, 2001 at 08:46 UTC |