in reply to Unlinking...
You don't have to open files you are trying to delete. See unlink
Problems:open(FILE,"/cgi and perl");
problems:while(<FILE>){
This line alone should do what you want, if the script is run in the directory you want the text files deleted from.unlink(<*.txt>);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Unlinking...
by damian1301 (Curate) on Nov 22, 2000 at 02:19 UTC | |
by swiftone (Curate) on Nov 22, 2000 at 02:27 UTC | |
by damian1301 (Curate) on Nov 22, 2000 at 02:30 UTC | |
by swiftone (Curate) on Nov 22, 2000 at 02:35 UTC |