G
guba
Hello,
I have txt files with paths of image files and
parameter values for image processing operations
in PerlMagick. The structure is like this:
name of the variable without $
variable value
for example:
....
background_jp2_path
E:/ART/IM_Composing/Planes/2004/Tile14/T14-2004_04_30a-1-16T.JP2
crop_width
1222
background_x
2123
background_y
192
background_x_roll
489
....
I wrote a program that reads such txt files,
defines the variables and gets the variable
values like
$background_jp2_path = 'E:/ART/...'
I checked that all variables have the right
values with the print command.
But if I want to read the image file with
$background->Read("$background_jp2_path");
nothing happens!!
The variable has for sure
the right value and the file exists at the
right place which is proven by inserting
the path value by hand
$background->Read("E:/ART/...");
and this works.
Why is the Read()-command not working?
Thank you very much!
I have txt files with paths of image files and
parameter values for image processing operations
in PerlMagick. The structure is like this:
name of the variable without $
variable value
for example:
....
background_jp2_path
E:/ART/IM_Composing/Planes/2004/Tile14/T14-2004_04_30a-1-16T.JP2
crop_width
1222
background_x
2123
background_y
192
background_x_roll
489
....
I wrote a program that reads such txt files,
defines the variables and gets the variable
values like
$background_jp2_path = 'E:/ART/...'
I checked that all variables have the right
values with the print command.
But if I want to read the image file with
$background->Read("$background_jp2_path");
nothing happens!!
The variable has for sure
the right value and the file exists at the
right place which is proven by inserting
the path value by hand
$background->Read("E:/ART/...");
and this works.
Why is the Read()-command not working?
Thank you very much!