in reply to Re^2: while loop acting up, though I'm not sure how
in thread while loop acting up, though I'm not sure how

The sleep is not evaluated (hence, not executed) every odd iteration because of the "short-circuit" nature of perl's boolean operators. davido explains this thoroughly in Perl Idioms Explained - && and || "Short Circuit" operators - despite the subject, this is also regarding and and or.

Replies are listed 'Best First'.
Re^4: while loop acting up, though I'm not sure how
by msh210 (Monk) on Nov 17, 2015 at 22:23 UTC
    Thank you.