Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: unlink fails to delete files with perculiar names

by Anonymous Monk
on Nov 22, 2011 at 09:20 UTC ( #939398=note: print w/ replies, xml ) Need Help??


in reply to unlink fails to delete files with perculiar names


$ dir /b ~$
File Not Found

$ echo > "~$"

$ dir /b ~$
~$

$ perl -e " unlink '~$' or die $!"

$ dir /b ~$
File Not Found

$ notepad > "~$"

$ dir /b ~$
~$

$ perl -e " unlink '~$' or die $!"
Permission denied at -e line 1.

$ perl -e " unlink '~$' or die qq/ $! \n $^E / "
Permission denied
The process cannot access the file because it is being used by another process at -e line 1.


Comment on Re: unlink fails to delete files with perculiar names

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2015-07-03 00:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (47 votes), past polls