Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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?
[Discipulus]: i prepare a lot of 'pasta' as you can imagine, i try to vary sauce putting as much vegetables i can. veg. meat and cheese are almost organic ones. plus the organic bread i make myself

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (12)
As of 2017-10-19 11:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (252 votes). Check out past polls.

    Notices?