http://www.perlmonks.org?node_id=1056914


in reply to tie(...) bug or select(...) bug?

neither, read select, int $SLEEP_TIME is zero, which means block

  • Comment on Re: tie(...) bug or select(...) bug (neither)?

Replies are listed 'Best First'.
Re^2: tie(...) bug or select(...) bug (not neither)?
by SankoR (Prior) on Oct 04, 2013 at 18:40 UTC

    Yeah... not true and not the issue here. I could put tie(my $SLEEP_TIME, 'Tie::StdScalar', 5); and my first example would still block indefinitely. select(...) isn't correctly working with tie()'s magic to get the right value of $SLEEP_TIME and instead figures it's undef which is supposed to block. That's the bug I think I'm seeing.