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

hey guys, need help in finding a way to compare two images by finding out the degree of difference b/w them.. Images are of same format and same resolution.

P.S. I don't want to "perlmagick" my code because i need to embed it and perlmagick needs a lot of stuff to be done before it can be used.