I am using the below code:

$fmtFile = `$dpImportCmd`;
..
..
unlink($fmtFile) || die "unable to remove $fmtFile\n";


dpImportCmd, is a program that generates a text file, this text file name is now in the variable: $fmtFile. Later in the program, I want to delete this file, but it fails. I don't know why.

In the perl cookbook, it says "The backticks do not return until the called program exits"

Is this related?

Thanks,
mahdi.


--
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