in reply to Re^2: Daemon problem with sleep()
in thread Daemon problem with sleep()

Is that the same as $|++;?

I'm so adjective, I verb nouns!

chomp; # nom nom nom

Replies are listed 'Best First'.
Re^4: Daemon problem with sleep()
by ikegami (Patriarch) on Dec 17, 2008 at 19:53 UTC

    $| affects the currently selected file handle (normally STDOUT).

    $|++;

    is a weird way of saying

    $|=1;

    and it's equivalent to

    select()->autoflush(1);

    But when acting on the same file handle, $|=1; and ->autoflush(1) are equivalent.