and now it's nearly like the original non-for code.for (;$BASKET and (my @socks = $BASKET -> can_read(2)) or 1); ) { ... }
Probably simpler just to use the while. {grin}
-- Randal L. Schwartz, Perl hacker
In reply to Re: Re: Re: for vs. while question
by merlyn
in thread for vs. while question
by deprecated
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |