Quote the argument of unlink.
my($no) = unlink "$targ" || carp "Unable to delete file $targ\n";
In reply to Re: unlink fails to delete files with perculiar names
by stefbv
in thread unlink fails to delete files with perculiar names
by DaveARoberts
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |