Hi all, it's been a while since I logged on here!
I've been trying my hand at a little perl and have hit a brick wall.
I'm using the Imagemagick module to manipulate some images. I can get the following to work without issue:
..but really I want $imagepath to be an element of an array (because I intend to iterate through the array). However, this wont work for me:Code:$teampath = "/var/www/team1"; $player=Image::Magick->new; $imgpath = $teampath . "/img/player.png"; $player->Read("$imgpath")
It simply wont read the image.Code:$teampath = "/var/www/team1"; $player=Image::Magick->new; $imgpath = $teampath . "/img/" . $images[0]; $player->Read("$imgpath")
@images is a properly defined array with 16 elements:
Produces the following in either!! of the above cases:Code:print "$imgpath\n";
Any ideas what I'm doing wrong folks?/var/www/team1/img/player.png![]()




Reply With Quote
