The problem isn't with ImageMagick; your script isn't handling the file upload. File uploads aren't automatic, they have to be processed. Here's a tutorial on how to handle file uploads in Perl.
http://www.sitepoint.com/article/upload ... s-cgi-perl
Hope this helps.