I am not sure if I did this correctly, but I copied the script in a test.pl (/home/username/public_html/MagickStudio/scripts/test.pl) file.
I then ran the script as "perl test.pl" from the command line but didn't get any output.
==================
root@server [/home/username/public_html/MagickStudio/scripts]# cat test.pl
#!/usr/bin/perl -w
use Image::Magick;