From: "Anshul Chhabra" <[EMAIL PROTECTED]>
> I am using Build 623. My code is given below. Basically, for
> processing I need to create some temp files. After I use them, I want
> to delete the file. But the unlink does not work.
Are you sure you closed the file before trying to unlink it?
Jenda
ine for me (ActivePerl 5.6.1-633)
when I have used it.
-Original Message-
From: Anshul Chhabra [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 18, 2002 5:13 PM
To: beginner perl
Subject: Re: unlink in ActiveState Perl 5.6.0
I am using Build 623. My code is given below. Basically,
&addFooterToBody($tempFile, "$templateDir/Footer.txt",
"$outputDir/$justFileName" ) ;
unlink($tempFile0) ;
#if ( -e $tempFile0) {
# die "$tempFile0 still exists!!!" ;
#}
#die "postProcesstemp.tmp0 was deleted" ;
}
-Original Mes
What build are you using? You should probably be using ActivePerl 5.6.1
build 633. I've used unlink on Win32 with no problems. Perhaps you can
post your code?
-Original Message-
From: Anshul Chhabra [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 18, 2002 5:18 PM
To: beginner perl
Su