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

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]
[LanX]: YAPC Asia was renamed and you'd need to speak Japanese to be able to follow
[robby_dobby]: LanX: Misery :P
[robby_dobby]: Or India
LanX which means I can finally organize YAPC Asia in Sharm el Sheikh ;-)
[robby_dobby]: I attended a couple conferences (both in India). Left me with a renewed enthusiasm to do more, only to see it disappear in a few days!
[LanX]: Then come to YAPC EU in Amsterdam ...
[robby_dobby]: LanX: But that's in Africa! More like YAPC::Africa
choroba fears Amsterdam might fill him with enthusiasm to do nothing
[robby_dobby]: Uff, too expensive :-(
[LanX]: ... I found YAPC EU more entertaining (and international )than YAPC NA

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (12)
As of 2017-04-24 15:57 GMT
Find Nodes?
    Voting Booth?
    I'm a fool:

    Results (442 votes). Check out past polls.