deprecated has asked for the wisdom of the Perl Monks concerning the following question:
why is
other than the obvious conditional difference. i found that my IO::Select code was not working with the first example, but when I switched to the second example, it worked. Anyone have an idea as to what is causing this?for ( ; ; my @socks = $BASKET -> can_read(2) ) { ... } # different than: while ($BASKET) { my @socks = $BASKET -> can_read(2); ... }
thanks,
brother dep.
--
transcending "coolness" is what makes us cool.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: for vs. while question
by MrNobo1024 (Hermit) on Mar 07, 2001 at 05:49 UTC | |
|
Re: for vs. while question
by merlyn (Sage) on Mar 07, 2001 at 05:49 UTC | |
by MrNobo1024 (Hermit) on Mar 07, 2001 at 05:50 UTC | |
by merlyn (Sage) on Mar 07, 2001 at 05:57 UTC |