On Fri, 2 Apr 2004 10:55:07 +0530
"Venugopal P" <[EMAIL PROTECTED]> wrote:

> Once you close the file, memory for the file handle will be
> deallocated. You can unlink file using the original file name.
> unlink ("abc");

On Unix systems, you may unlink a file after opening it. The directory
entry for the file is deallocated, but the file is still open. When the
file is closed, the disk allocation for the file is reclaimed.

This is a handy method for creating temporary files that you want to be
sure get deallocatted when the program using the temporary file exits.

-- 
Smoot Carl-Mitchell
Systems/Network Architect
email: [EMAIL PROTECTED]
cell: +1 602 421 9005
home: +1 480 922 7313

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to