Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Re: (2) scratching the surface of File::Temp (unlink w/o $filehandle ?)

by a (Friar)
on Feb 10, 2001 at 09:55 UTC ( #57580=note: print w/replies, xml ) Need Help??


in reply to Re: (2) scratching the surface of File::Temp (unlink w/o $filehandle ?)
in thread (code) scratching the surface of File::Temp

Short answer: I don't think you can. Either you're not supposed to close $fh (unlink0 will handle that) or your first method: open a 2nd link and go from there. One hopes tilly|tye|chipmunk will be along w/ the correct answer real soon now ...

a

  • Comment on Re: Re: (2) scratching the surface of File::Temp (unlink w/o $filehandle ?)

Replies are listed 'Best First'.
Re: tilly (4) scratching the surface of File::Temp (unlink w/o $filehandle ?)
by tilly (Archbishop) on Feb 10, 2001 at 22:47 UTC
    You have the correct answer. And indeed it is addressed in the documentation. unlink0 performs checks that depend on having both the filename and the open filehandle, and if you do the close yourself it cannot verify that the close was safe.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://57580]
help
Chatterbox?
[Corion]: I just found out that in $current_top_prior ity_project , the part I am in is not even in the top three worries. That's somewhat bad, not because I'm happy with being a top worry but because that means that I don't even know how bad the rest ...
[Corion]: ... of the situation is :-)
[marto]: it's good to know that things can always get worse :P
[hippo]: Ignorance can be bliss
[Corion]: hippo: Yeah - I'll just avoid the project lead :)
[Corion]: marto: Yeah, it helps with the perspective :-D

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (11)
As of 2017-07-26 08:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (385 votes). Check out past polls.