Jeff Westman wrote:
This doesn't answer my question.
Okay
I wanted to know if it is
possible to remove a file using the FH name, not the variable name
referencing it.
No.
Joseph
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Once you close the file, memory for the file handle will be deallocated.
You can unlink file using the original file name.
unlink (abc);
-Original Message-
From: Jeff Westman [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 01, 2004 2:02 AM
To: perl_help
Subject: Is this possible? (file
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
, not the variable name
referencing it. Please see my original post below.
Thanks again,
JW
-Original Message-
From: Jeff Westman [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 01, 2004 2:02 AM
To: perl_help
Subject: Is this possible? (file handles)
Hi,
I want to remove an empty file
Jeff Westman wrote:
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);
This doesn't answer my question. I wanted to know if it is
possible to remove a file using the FH
Hi,
I want to remove an empty file using the file handle and not a
variable name or literal name referencing it. Something like this:
1 #!/bin/perl
2 use warnings;
3 use strict;
4 no strict 'subs';
5
6 open(F, abc) or die cant create file: $!;
7
Jeff Westman wrote:
Hi,
Hello,
I want to remove an empty file using the file handle and not a
variable name or literal name referencing it. Something like this:
1 #!/bin/perl
2 use warnings;
3 use strict;
4 no strict 'subs';
5
6 open(F, abc) or