On Feb 7, 2008 5:54 AM, Mahdi A Sbeih <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I have a script that logs activities to a txt log file. I noticed that
> when deleting the file from another window or shell, the script stops
> writing to the file. I was expecting something like the unix shell,
> which
perldoc -f unlink
-Original Message-
From: Shishir K. Singh
Sent: Friday, May 31, 2002 6:14 PM
To: Lance Prais; Perl
Subject: RE: deleting a file
use unlink
perl -f unlink
-Original Message-
From: Lance Prais [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 31, 2002 6:10 PM
To
use unlink
perl -f unlink
-Original Message-
From: Lance Prais [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 31, 2002 6:10 PM
To: Perl
Subject: deleting a file
Is it possible to delete a file or remove all the data using a perl command?
I am using perl on windows, can you include dos
Dear Japhy,
Thank you! I thought I had to open the directory then delete the
file to use unlink. Thank you again.
>On Jul 15, Teresa Raymond said:
>
>>opendir (ADS, "$filepath/") || die "Can't open directory\n";
>>if (-e $file)
>>{
>> unlink "$file";
>>}
>
>Why are you opening a directory
On Jul 15, Teresa Raymond said:
>opendir (ADS, "$filepath/") || die "Can't open directory\n";
>if (-e $file)
>{
> unlink "$file";
>}
Why are you opening a directory, but not using it? At first, I'd think
you meant to just say:
unlink "$filepath/$file" if -e "$filepath/$file";
But you sa