in reply to Re: Checking success of open() on file held in scalar ref.
in thread Checking success of open() on file held in scalar ref.

Suggest checking for print failure, as well as close failure, via 'print FH or die $!'. Use /dev/full for testing this otherwise hard-to-test condition.

Replies are listed 'Best First'.
Re^3: Checking success of open() on file held in scalar ref.
by MidLifeXis (Monsignor) on Nov 15, 2007 at 19:23 UTC

    What OS contains /dev/full?

    --MidLifeXis

      Linux, should've mentioned that.