M
myicq
I have done some experimenting with Perl Magick and
unicode.
I have found a very strange thing with quotes. Can someone explain the
following:
# this will fail, resulting in output
# of literal string \x{0416}
# using SINGLE quotes
$image->Annotate(
font=>'arial.ttf',
text=>'\x{0416}');
# this will work
# resulting in a single character
# using DOUBLE quotes
$image->Annotate(
font=>'arial.ttf',
text=>"\x{0416}"
);
My question is: I thought Perl did not differ between single and double
quotes, as long as used consistently in a string.
Btw, using Windows version of Perl and GM.
unicode.
I have found a very strange thing with quotes. Can someone explain the
following:
# this will fail, resulting in output
# of literal string \x{0416}
# using SINGLE quotes
$image->Annotate(
font=>'arial.ttf',
text=>'\x{0416}');
# this will work
# resulting in a single character
# using DOUBLE quotes
$image->Annotate(
font=>'arial.ttf',
text=>"\x{0416}"
);
My question is: I thought Perl did not differ between single and double
quotes, as long as used consistently in a string.
Btw, using Windows version of Perl and GM.