Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
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?
[ksbehal]: I need to test a .pl file for unit testing and integration testing. I tried to use the Test::More but when I am doing require_ok, it is executing the given script which i do not want.. any way out??

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (7)
As of 2017-01-24 12:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (204 votes). Check out past polls.