Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^2: Checking success of open() on file held in scalar ref.

by djp (Hermit)
on Nov 15, 2007 at 05:56 UTC ( #650925=note: print w/ replies, xml ) Need Help??


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.


Comment on Re^2: Checking success of open() on file held in scalar ref.
Select or Download Code
Re^3: Checking success of open() on file held in scalar ref.
by MidLifeXis (Prior) on Nov 15, 2007 at 19:23 UTC

    What OS contains /dev/full?

    --MidLifeXis

      Linux, should've mentioned that.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://650925]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2014-12-29 01:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (183 votes), past polls