Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
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 exploiting the Monastery: (9)
As of 2014-11-28 12:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (196 votes), past polls