> I just wrote this little script, and was hoping that some perl gurus on
> the list could help out. My intent is to start at a known location and
> go recursively through folders deleting all .java files and any .class
> files compiled from them. Deleting all the .java files isn't difficult,
> I'm just not sure about the other part. Here's the idea though: if there
> is a file "x.java" then delete "x.class" and any files that start with
> "x$" and end in ".class"
It has been too long since I did any significant work with perl to comment
on your code, but I will note a small problem with the logic of deleting
x.class and x\$.*\.class based on the corresponding .java filename - .java
files can contain any number of non-public top-level classes, so x.java
could have classes inside named y and z, which would produce y.class and
z.class files. I'm not sure if deleting all class files is a good solution
or extacly what your intention is.
Daniel
---------------------------------------------------------------------------
Send administrative requests to [EMAIL PROTECTED]