in reply to File Handle wierdness

I should also mention, even the "print OUT "HELLO"" does not appear in the file

Replies are listed 'Best First'.
(tye)Re: File Handle wierdness
by tye (Sage) on Nov 22, 2000 at 11:48 UTC

    The "HELLO" won't be flushed to the file until you write more or close the file handle. You might want to do:

    { my $old= select(OUT); $|= 1; select($old); }
    or
    use IO::Handle; ... OUT->autoflush(1);
    so that you program hanging on accept() doesn't fool you, for example.

            - tye (but my friends call me "Tye")