Processing files in a directory

[email protected] ("[email protected]") Mon, 10 Nov 2008 02:32:42 -0800 (PST)
Newsgroups perl.beginners.cgi
Organization http://groups.google.com
Message-ID <726f16a7-aaa0-46f3-bb26-ac5090756f91@f40g2000pri.googlegroups.com>
Hi Everyone,

I have around 2000 files in a directory. During processing of these
files, a temp* will be created for each file and its removed after
processing that file. If the processing is unsuccessful, temp* file
still exists. Can u plz help me to write a script to automate this
process using Perl ie., when a temp* file is found (which stays for
abt 10 secs max), I hv to move that temp* file to some other folder.

Thanks in advance,
Satish