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
In reply to Re: Re: When does while() test for defined vs truth
by blakem
in thread When does while() test for defined vs truth
by blakem
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |