Sorry if my English is bad.
I have a bash command:
convert somefile1.png somefile2.png -resize '200x200!' MIFF:- | compare -metric AE -fuzz '5%' - null:-
my $s_command =
"convert " . $s_img1_path . " " .
$s_img2_path . " -resize '" .
$N_IMAGEMAGICK_IMG_SIZE . "x" . $N_IMAGEMAGICK_IMG_SIZE .
"!' MIFF:- | compare -metric AE -fuzz '5%' - null:-";
my $s_out = `$s_command`;
I ran the following code:
#!/usr/bin/perl -w use strict; my $cmd = "grep strict test.pl -n|cut -c1-12"; my $result = `$cmd`; print $result;
The output to STDOUT was as expected (I ran the grep on this code, actually):
2:use strict 4:my $cmd =
When I commented out the