in reply to comparing files based on timestamps
Well, if you want, you can put this code in a loop
and start comparing filesscalar localtime((stat("$dir_name/$file"))[9]);
Raghu
In Section
Seekers of Perl Wisdom