Hello, my Perl skills are very weak.  I have a chunk of code that
works great as long as I hard-code everything.  When I try to use
$variables in the strings, things don't work.  Please let me know if
you know how to use $variables in these contexts:

my $image = Image::Magick->new;
# trouble
open(IMAGE, '<images/products/unprocessed/"$sku"_unprocessed.jpg');
$image->Read(file=>\*IMAGE);
close(IMAGE);
# trouble
$image->Resize(geometry=>'"$height"x"$width"');
# trouble
$image->Write(filename=>'/var/www/localhost/htdocs/"$sku".jpg');

- Grant

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to