Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org

Feedback: Deleting Files in Perl

Feedback on: Deleting Files in Perl

Sent by peter richardson on August 24, 1999 at 08:46:28: - feedback #404

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.





Sent by R.Moore on January 17, 2000 at 10:37:38: - feedback #742

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.



Sent by Gary Theisen on June 14, 2001 at 14:04:30: - feedback #2845

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


Sent by Jonathan Werre on February 26, 2002 at 16:26:41: - feedback #3632

Worth:
Very worth reading

Length:
Just right

Comments:
Use extreme caution if you're using this function as a CGI web app. Slick though.


Sent by michel on August 29, 2002 at 20:59:10: - feedback #4113

Worth:
Worth reading

Length:
Just right

Technical:
Just right

Comments:
it's fine though...


Sent by Far on Wednesday June 13, 2007 at 09:19:45 - feedback #4701

Worth:
Very worth reading

Length:

Technical:

Comments:
Good tutorial. Thanks!




Sent by Viraj Dixit on Thursday November 29, 2007 at 17:11:01 - feedback #5164

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;




©2018 Martin Webb