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:
Code:
$teampath = "/var/www/team1";
$player=Image::Magick->new;
$imgpath = $teampath . "/img/player.png";
$player->Read("$imgpath")
..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/" . $images[0];
$player->Read("$imgpath")
It simply wont read the image.
@images is a properly defined array with 16 elements:
Code:
print "$imgpath\n";
Produces the following in either!! of the above cases:
/var/www/team1/img/player.png
Any ideas what I'm doing wrong folks?