Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

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.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2016-10-27 05:45 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (353 votes). Check out past polls.