Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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?
[LanX]: sure you are German
[shmem]: germans do have humour. Open debate is what germans, and what humour. There. :-)
[LanX]: :-P
[oiskuu]: .oO(-: V is for Varoufakis :-)

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (7)
As of 2017-04-27 20:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (513 votes). Check out past polls.