merrymonk has asked for the wisdom of the Perl Monks concerning the following question:
However, if I store all the lines in an array using$img_gry->Set('pixel[$col,$row]' => 'rgb($sub_red, $sub_green, $sub_bl +ue )');
and then process these using the following loop which uses eval, all the required changes are made.$con_str = "\$img_gry->Set('pixel[$col,$row]' => 'rgb($sub_red, $sub_g +reen, $sub_blue)')"; push(@pix_con_str, $con_str);
I just wondered if anyone knew why this was the case. I can send more of the Perl script if that is of any use).for $jc (@pix_con_str) { eval($jc); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Pixel setting oddity - Image:Magick
by Eily (Monsignor) on May 11, 2015 at 12:18 UTC | |
by afoken (Chancellor) on May 11, 2015 at 12:30 UTC | |
by Eily (Monsignor) on May 11, 2015 at 12:42 UTC | |
by merrymonk (Hermit) on May 12, 2015 at 06:58 UTC | |
by afoken (Chancellor) on May 12, 2015 at 08:28 UTC |