Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
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 lurking in the Monastery: (6)
As of 2014-12-20 14:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (96 votes), past polls