in reply to Can Perl do 2D matching?

Maybe... check CPAN.