I read the blog and still don't understand what exactly you are trying to do...other than having access to imagemagick via perl. maybe you could shed some light on that?
A possible (quick) solution would be to install standalone imagemagick and call the executables accordingly from perl.
the hardest line to type correctly is: stty erase ^H