Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: unlink fails to delete files with perculiar names

by Eliya (Vicar)
on Nov 22, 2011 at 08:58 UTC ( #939392=note: print w/ replies, xml ) Need Help??


in reply to unlink fails to delete files with perculiar names

my($no) = unlink $targ || carp "Unable to delete file $targ\n";

This doesn't explain your deletion problem, but you most likely meant

my $no = unlink $targ or carp "Unable to delete file $targ\n";

As you have it, the carp would only ever fire if $targ is false (e.g. ""), but not when the unlink failed.


Comment on Re: unlink fails to delete files with perculiar names
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://939392]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2014-10-23 18:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (126 votes), past polls