in reply to compare images with perl 5.6 or 5.8
What is it you want to compare about the images? If its just a question of finding identical image files stored under different filenames, you can compare crc checksums of the files.