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 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 pondering the Monastery: (4)
As of 2014-12-27 11:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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





    Results (177 votes), past polls