Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: unlink fails to delete files with perculiar names

by Khen1950fx (Canon)
on Nov 22, 2011 at 09:22 UTC ( #939401=note: print w/ replies, xml ) Need Help??


in reply to unlink fails to delete files with perculiar names

Using File::Overwrite:

#!perl use strict; use warnings; use File::Overwrite qw(overwrite_and_unlink); my $new_file = shift @ARGV; overwrite_and_unlink($new_file);
Note: The file must be closed in order for this to work on Windows.


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

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (10)
As of 2014-10-31 08:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (215 votes), past polls