in reply to Re: unlink fails to delete files with perculiar names
in thread unlink fails to delete files with perculiar names
The OP doesn't say how $targ was set. It's merely speculation that he assigned it using a double-quoted literal. It might just as well have come from a readdir or whatever.
Also, why would unlink have returned 1, as the OP states? That should only have happened in the (unlikely) case there also was a file 'D:/Users/Dave/Documents/Personal/CV/~ Vitae - 09 June 2007.doc' around at the time of the unlink call.