deadpickle has asked for the wisdom of the Perl Monks concerning the following question:
Here is a question that I cant seem to answer, even though it is a simple one. I want to simply delete a file, under windows, within perl. I have tried unlink and
and they delete them, sort of. I know this because I get Could Not Find C:\Users\deadpickle\Desktop\UAS\GRRUVI_1.60\panel\UAS01 in the terminal. But when I go to look at the directory the files 'were' in I am stunned to see that they are still there!!!!! If I ls (yes my windows system has ls) the directory it only verifies that the files were deleted in mind and there bodies are still lingering. I don't get it?! Any ideas?my $call = "del $kid"; system($call);
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Deleting a File in Windows
by roboticus (Chancellor) on May 05, 2009 at 16:55 UTC | |
Re: Deleting a File in Windows
by ccn (Vicar) on May 05, 2009 at 16:17 UTC | |
by Anonymous Monk on May 05, 2009 at 19:59 UTC | |
Re: Deleting a File in Windows
by Marshall (Canon) on May 05, 2009 at 17:50 UTC | |
Re: Deleting a File in Windows
by John M. Dlugosz (Monsignor) on May 05, 2009 at 17:05 UTC |
Back to
Seekers of Perl Wisdom