in reply to Re: Re: for vs. while question
in thread for vs. while question

Blimey yes. Ugh. OK, make it the conditional then:
for (;$BASKET and (my @socks = $BASKET -> can_read(2)) or 1); ) { ... }
and now it's nearly like the original non-for code.

Probably simpler just to use the while. {grin}

-- Randal L. Schwartz, Perl hacker