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.
In reply to for vs. while question by deprecated
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |