in reply to Can Perl do 2D matching?

Image magick's compare is very good with this type of works if you have images

use Image::Magick;