songlinl has asked for the wisdom of the Perl Monks concerning the following question:

For example, I have two 2D arrays (like 2 images). Can Perl tell the differences between 2D patterns?

Replies are listed 'Best First'.
Re: Can Perl do 2D matching?
by toolic (Bishop) on Sep 12, 2011 at 18:55 UTC
    Maybe... check CPAN.
Re: Can Perl do 2D matching?
by Anonymous Monk on Sep 12, 2011 at 19:45 UTC

    Can Perl

    No, but an extension might :)

    Imager::Search - Find images within other images

    Image::Compare - Compare two images in a variety of ways.

Re: Can Perl do 2D matching?
by AR (Friar) on Sep 12, 2011 at 18:53 UTC

    Can you be more specific? There are a lot of modules in CPAN. Some of them might be exactly what you're looking for.

Re: Can Perl do 2D matching?
by pvaldes (Chaplain) on Sep 13, 2011 at 11:13 UTC

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

    use Image::Magick;