Keep It Simple, Stupid | |
PerlMonks |
Re: Automatically delete filesby bluto (Curate) |
on Aug 02, 2005 at 15:54 UTC ( [id://480252]=note: print w/replies, xml ) | Need Help?? |
A couple of minor nits. You should either skip '.' and '..', or better yet, make sure the entry you are looking at is not a directory. Also, you should probably check to make sure chdir succeeds or you might end up removing files in the current working directory.
In Section
Seekers of Perl Wisdom
|
|