in reply to Re: Fast way to compare two picture-files
in thread Fast way to compare two picture-files

Why write it manually? Someone else already did it.
use File::Compare; compare("foo.jpg", "bar.jpg");