Ok, dude, so give it a shot. Any Perl command you want to use, simply look up
its page at
perldoc.perl.org.
The issue I have with stat though, with relation to your issue, is that it will return the users UID, even if the file in question has the users name on it. The files you are looking for have the users UID, due to the acct being deleted already.
What you really want to do is scour the directory system and look for files that are owned by the UID in question. I have a few ideas in my head at the moment right now on how to do it, but to put them here would be like a book and probably be too confusing to read. (trust me).
One idea is to use the system level command "find" to look for all files on the system owned by the specific UID and store the results in a file. Then, open the file and read it in and then you can do whatever you need to to the files. You can even use Perl's
chown function to change ownership of the files to someone else, or even Perl's
unlink function to remove the file completely. Its up to you.
If you get stuck, post your code here and let us know the problem you are having and we will help.
Regards,
Jeff