Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^2: Deleting a File in Windows

by Anonymous Monk
on May 05, 2009 at 19:59 UTC ( [id://762043]=note: print w/replies, xml ) Need Help??


in reply to Re: Deleting a File in Windows
in thread Deleting a File in Windows

  • deadpickle's path appears well formed, meaning he knows how to escape slashes, so forward slashes aren't needed.
  • Usually you want to know why unlink failed (and on what line)
my $filename = qw[ C:\Users\deadpickle\Desktop\UAS\GRRUVI_1.60\panel\U +AS01 ]; unlink $filename or die "Couldn't unlink($filename) : ($!)($^E)"; __END__ Couldn't unlink(C:\Users\deadpickle\Desktop\UAS\GRRUVI_1.60\panel\UAS0 +1) : (No such file or directory)(The system cannot find the path spec +ified) at - line 2.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (7)
As of 2024-04-25 11:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found