Hi,
I am having a little bit of trouble with unlinking a file.
I would like to unlink it from another directory. The file name contains special characters in it and I have not the ability to change that.
Here is my code:
I am having a little bit of trouble with unlinking a file.
I would like to unlink it from another directory. The file name contains special characters in it and I have not the ability to change that.
Here is my code:
Code:
sub FileRemove(@)
{
my $RemovalFile;
my @goners = @_;
foreach $RemovalFile(@goners)
{
chomp $RemovalFile;
print "$RemovalFile \n";
unlink("\"$RemovalFile\"");
my $status = DoesFileExist($RemovalFile);
if ($status)
{
`rm "\"$RemovalFile\""`;
DoesFileExist($RemovalFile);
}
}
}
Comment