Feedback on: Deleting Files in Perl
Worth:
Very worth reading
Comments:
a thousand thanks, Wing. I've just spent hours looking in books and the perl help files for this information, (why doesn't anyone mention it?? is this obvious to unix users (I'm using windows)??.
I'd love to see another article on common problems encountered by windows users trying to learn perl!! thanks again.
Worth:
Very worth reading
Technical:
Just right
Comments:
I am new at this, how does one delete ALL files within a specified directory. Listing the files as in the example is not always practical.
Worth:
Very worth reading
Comments:
This article was just want I was looking for! The rename command saved me many lines of code and time!!
Thanks,
Gary
Worth:
Very worth reading
Length:
Just right
Comments:
Use extreme caution if you're using this function as a CGI web app. Slick though.
Worth:
Worth reading
Length:
Just right
Technical:
Just right
Comments:
it's fine though...
Worth:
Very worth reading
Length:
Technical:
Comments:
Good tutorial. Thanks!
Worth:
Very worth reading
Length:
Technical:
Comments:
It works as it should, but in my case how do I delete all the jpg files in a directory in a sub-routine like this. I used your commands but no luck.
sub ClearForm {
@filelist = ("C:/Program Files/Apache Group/Apache2/htdocs/frames/*.jpg");
unlink @filelist;
print "<center><h2>All old frames have been deleted</h2></center><p>\n";
&PrintForm;